<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 24.06.2022 19:04, francesco
mulassano via Synth-diy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+R=RzBYSkRGLsrFKq6qqjSu4xpyNiKZo1uQz_6iKP4ZCq9KRQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">hi!
<div>I need some advice for a project that i've started to learn
RP2040 and Micropython</div>
<br>
<div>What can I do<br>
- I do the detect of the MODE<br>
- when I am in MODE 0, I call the appSelect function and with
the button, i cycle on the LEDs</div>
<div><br>
</div>
<div><b>the problem</b></div>
<div>- <b>when I go back to MODE 1, it should leave the select
mode and run the selected APP but unfortunately the
appSelect remains active<br>
</b></div>
</div>
</blockquote>
<p><br>
</p>
<p>At first glance: In Mode 1 you never call the appSelect again, so
you're stuck there. <br>
</p>
<p>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.)<br>
</p>
<p>Best,</p>
<p> René<br>
</p>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-abbreviated" href="mailto:synth@schmitzbits.de">synth@schmitzbits.de</a>
<a class="moz-txt-link-freetext" href="http://schmitzbits.de">http://schmitzbits.de</a></pre>
</body>
</html>