LEDs now operating on button push

Fixed several bugs:
- TCB wasn't running. The datasheet steps were not complete.
- TCA was waking the MCU and causing the main program to run. Added checks
  to ensure program only runs on button or TCB wakeup.
- Fixed some peculiarities with specific RGBLED programs
This commit is contained in:
Brooke
2025-04-28 21:07:46 -04:00
parent 9827a8f6be
commit 4d58a3df74
5 changed files with 36 additions and 14 deletions

View File

@@ -120,6 +120,12 @@ void setup() {
// mcu program loop
void loop() {
while (!rgb_run_next) {
// __asm("sleep");
}
rgb_run_next = 0;
switch (run_rgbprog) {
case RGB_INIT: { // just started running a program
digitalWrite(PIN_LED_PWRENA, HIGH); // enable LED power supply,