Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: need help with ultrasonic sensor code
Post: RE: need help with ultrasonic sensor code

(Jun-28-2018, 02:27 PM)gontajones Wrote: Maybe something like this...using a control flag (run_script) to avoid multiple calls of test.sh. def main(): try: run_script = True wh...
mpmm366 General Coding Help 6 4,033 Jun-28-2018, 08:12 PM
    Thread: need help with ultrasonic sensor code
Post: RE: need help with ultrasonic sensor code

(Jun-28-2018, 02:01 PM)gontajones Wrote: After you press CTRL+C the while loop at line 46 will break and your function main() will exit. Then come this part: if 0 < 10: os.system('. /home/pi/...
mpmm366 General Coding Help 6 4,033 Jun-28-2018, 02:15 PM
    Thread: need help with ultrasonic sensor code
Post: need help with ultrasonic sensor code

Hello guys. On my raspberry pi I have a hc-sr04 ultrasonic sensor, now I want to run a sh script, when the sensor measurement is below 10cm. Here is my Code, but it doesnt work. It only executes the c...
mpmm366 General Coding Help 6 4,033 Jun-28-2018, 01:34 PM

User Panel Messages

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