fmorton / Makers_CircuitPython_remote_control

CircuitPython helper for remote controls
MIT License
0 stars 1 forks source link

Question: how to capture holding down buttons? #2

Open mfeif opened 4 years ago

mfeif commented 4 years ago

In the subject... under the current execution, if one holds down say a volume down button for several seconds, only one event is fired.

How can we detect that and make it into more events? (if this question should go to lower-level stuff, let me know)

Thanks!

mfeif commented 4 years ago

For anyone who lands here because of a search, what was happening was related to this bug:

https://github.com/adafruit/Adafruit_CircuitPython_IRRemote/issues/32

If you can use non-blocking code, then the repeat event is emitted.