Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: breaking a large program into functions, not acting as expected
Post: RE: breaking a large program into functions, not a...

The reason for the .5 increment was there are 600 pulses per revolution, half up and half down gives 1 count per pulse, but it does not really matter. originally I was trying to see if counts were be...
Zane217 General Coding Help 9 3,042 Sep-18-2021, 12:37 AM
    Thread: breaking a large program into functions, not acting as expected
Post: RE: breaking a large program into functions, not a...

I have been working on the other code trying to understand it. I can follow the logic but can not really change much because it is over my head. you new code using a dictionary works both in the up a...
Zane217 General Coding Help 9 3,042 Sep-17-2021, 02:58 AM
    Thread: breaking a large program into functions, not acting as expected
Post: RE: breaking a large program into functions, not a...

Holly cow, thank you!! I had to pull the GPIO = RPiGPIO() line out. it was giving an error and did not look like it was really doing anything. The code runs but is always increasing even when s...
Zane217 General Coding Help 9 3,042 Sep-14-2021, 08:37 PM
    Thread: breaking a large program into functions, not acting as expected
Post: RE: breaking a large program into functions, not a...

deanhystad Thank you for taking the time to help me. your code looks nothing like Basic so I do not understand 90% of it. I of course quickly copied it over to run it and try to figure out how it a...
Zane217 General Coding Help 9 3,042 Sep-14-2021, 07:26 PM
    Thread: breaking a large program into functions, not acting as expected
Post: breaking a large program into functions, not actin...

I am working on python code for a rotary encoder. By following others scripts I was able to get a working program but it skipped a lot of counts, by trial and error I was able to put together some ...
Zane217 General Coding Help 9 3,042 Sep-14-2021, 04:16 PM
    Thread: Using a list of variables
Post: RE: Using a list of variables

Thank you both, I will give that a try, it makes sense and I even understand the lower code. The short hand version misses me, It may very well work but I do not want to use code I do not understand...
Zane217 General Coding Help 6 2,541 Jun-09-2020, 01:27 PM
    Thread: Using a list of variables
Post: RE: Using a list of variables

#!/usr/bin/env python3 ######################################################################## # Filename : UltrasonicRanging.py # Description : Get distance via UltrasonicRanging sensor # auther ...
Zane217 General Coding Help 6 2,541 Jun-09-2020, 12:20 PM
    Thread: Using a list of variables
Post: Using a list of variables

Hi all, I have been working on a robot car for a while in an attempt to teach my son how to code. I have everything working but I am aware that my code is incredibly bad. Now that it is working I a...
Zane217 General Coding Help 6 2,541 Jun-09-2020, 12:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020