Pico Soft timer Method ... #16726
Unanswered
thierryppp
asked this question in
RP2040 / Pico
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have done a micropython (Pico) code to send commands to DFPlayer.
Commands generate by a infrared remote control (lib from Peter Hinch) and i have added a remote wifi control with send exactly the same value like infrared remote.
All is working you can send commad to play music.
I wanted to add a a function to play track > 10 to 99. For that i looked at how it works on the TV ?.
I send key to check_value() i record the first number track (key_1) then i start a soft timer for 2 seconds.
If I receice a second number track (key_2) the new number track is key1*10+key_2 else key_1.
All is working if you use the remotes normally. But there is a little problem when you sent several keys quickly. (key_1 is never None)
Is my method good and how can I correct it?
Thanks,
Thierry.
Beta Was this translation helpful? Give feedback.
All reactions