Camila_99$$
DIIDevHeads IoT Integration Server
•Created by Camila_99$$ on 6/11/2024 in #middleware-and-os
Managing Relay Sequences with Non-Blocking Delays on Arduino Leonardo
Hello everyone 👋🏻, I have a small issue. I programmed some Leonardo boards to execute relay sequences in a sound and light installation. Of course, I used delay() in my sequences, and everything is triggered by multiple RF relays.
The problem is that when an actor presses the wrong button on the remote control, it triggers another panel. I would like to add an RF relay that resets the panel, but I’m blocked by the delay() which prevents exiting the sequence. I have to wait for it to finish before I can interact with my sketch again.
It shouldn’t be too complicated, but I need help with this. Does anyone have an idea?
The code is something like this:
6 replies