Page 1 of 1

ED Stripes with Button Interrupts strange behaviour

Posted: Tue Oct 08, 2019 9:24 am
by EgorLED
Hey guys,

i have this code :https://pastebin.com/DKXYJyYP

The basic logic is:

Press button A to start animation A on LED stripes A, B and C.

For some reason the button presses are not recognized on each boot. Therefore I have to reboot several times until the button presses are registered, and the reset button crashes the whole MC after some presses, so I have to restart the MC again. This is a very big problem for my current project, as it needs to work reliably. Can someone please help me out with the problem?

Re: ED Stripes with Button Interrupts strange behaviour

Posted: Tue Oct 08, 2019 12:10 pm
by ESP_Dazz
Moderators Note: Moved to ESP32 Arduino forum

Re: ED Stripes with Button Interrupts strange behaviour

Posted: Tue Oct 08, 2019 2:39 pm
by boarchuz
Try volatile

Re: ED Stripes with Button Interrupts strange behaviour

Posted: Tue Oct 08, 2019 2:56 pm
by EgorLED
boarchuz wrote:
Tue Oct 08, 2019 2:39 pm
Try volatile
What do you mean exactely, could you please eloberate what I should mark as volatile?

Re: ED Stripes with Button Interrupts strange behaviour

Posted: Tue Oct 08, 2019 10:42 pm
by tommeyers
Google is a good place to begin; unless you want to be spoon fed ;)