Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Python • Re: How do I fix this Python code?

$
0
0
Have you tried something simple, to make sure the commands actually work?

Code:

import timesend_command("Record1stChoice")time.sleep(5)send_command("Stop")
This should start recording, wait five seconds, then stop recording.

If it works, it means the commands work, so you just have a scheduling problem. If it doesn't work it means it's broken and will never work, or you've misinterpreted something.

Statistics: Posted by Henrik Gill — Wed Feb 28, 2024 2:51 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles