[sdiy] Need some advice for Raspberry PICO + Micropython
René Schmitz
synth at schmitzbits.de
Fri Jun 24 20:19:49 CEST 2022
On 24.06.2022 19:04, francesco mulassano via Synth-diy wrote:
> hi!
> I need some advice for a project that i've started to learn RP2040 and
> Micropython
>
> What can I do
> - I do the detect of the MODE
> - when I am in MODE 0, I call the appSelect function and with the
> button, i cycle on the LEDs
>
> *the problem*
> - *when I go back to MODE 1, it should leave the select mode and run
> the selected APP but unfortunately the appSelect remains active
> *
At first glance: In Mode 1 you never call the appSelect again, so you're
stuck there.
I think you might want to call it in modes 1 and 2 as well. (Or take it
out of the "if" and save the last read value, so you can only act if the
value has changed.)
Best,
René
--
synth at schmitzbits.de
http://schmitzbits.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20220624/7d1e1368/attachment.htm>
More information about the Synth-diy
mailing list