I have a PiFace on a RaspberryPi, and it works great, but there is a several second delay between when the input switches to when the script responds. Can someone tell me where to find/change this delay time? Thanks, Jim
I have a PiFace on a RaspberryPi, and it works great, but there is a several second delay between when the input switches to when the script responds. Can someone tell me where to find/change this delay time? Thanks, Jim
Hi Jim,
Unfortunately there's not enough information to help in a good way. If you could share your code it will help (ideally using syntax highlighting as shown here: How to Ask Questions using the Create Discussion tool because Python uses spaces, and it will come out as a mess to the reader unless monospaced).
Also, if you can explain what the code is to be used for, there may be a better solution based on context. For instance, if you're trying to activate (say) a camera shutter for capturing a balloon burst, then that requires a very different solution than activating a camera or alarm on intruder detection (this is just an example).
Without seeing your code, it is not possible to tell if there is a deliberate or resolvable delay that can be changed in the code (and if the minimal delay will be sufficient for your needs), or if a different solution is needed.
Right now it is not possible to tell if you need a script to execute and perform the unknown response within 10msec, or 1msec, or less.
Hi Jim,
Unfortunately there's not enough information to help in a good way. If you could share your code it will help (ideally using syntax highlighting as shown here: How to Ask Questions using the Create Discussion tool because Python uses spaces, and it will come out as a mess to the reader unless monospaced).
Also, if you can explain what the code is to be used for, there may be a better solution based on context. For instance, if you're trying to activate (say) a camera shutter for capturing a balloon burst, then that requires a very different solution than activating a camera or alarm on intruder detection (this is just an example).
Without seeing your code, it is not possible to tell if there is a deliberate or resolvable delay that can be changed in the code (and if the minimal delay will be sufficient for your needs), or if a different solution is needed.
Right now it is not possible to tell if you need a script to execute and perform the unknown response within 10msec, or 1msec, or less.