Hello everyone!
I'm experimenting with a new project which seemed easy at the beginning but it is expanding into something more complex. That's why I need help from this lovely community.
The aim is to have eight buttons connected to an Arduino Micro board, two of which when pressed simultaneously, turn the LED light ON.
When the two buttons are pressed again, the LED light goes OFF.
Now the complex bit: I don't how to latch the LED until the buttons are pressed again.
Could you please let me know how to sort this out?
presumably the register controlling the LED holds it's state until changed.
recognizing that two buttons are pressed should only change the state of the LED when they both become pressed not while they are being pressed and a subsequent detection shouldn't occur until after recognizing that both buttons are no longer being pressed
and since mechanical button bounce, after a change in the state of either button, subsequent changes should be ignored momentarily ( ~20msec)
Hi guys, thanks a lot for your hints. I'll do some tests and let you know. @paulpaulson your question brings my project to another question.
The device is a control surface for sound recording, but will Arduino respond to two different sketches? In the original sketch that I'm already using, the two encoders are already being used for a specific task (gain control). I wonder if the same encoder would trigger the LED if I integrate the original sketch with the LED control.
Thanks a lot!