Transmit an off signal

This commit is contained in:
Savanni D'Gerinel 2022-10-30 12:19:26 -04:00
parent a7af4accc0
commit 8d412df7e1
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include <string.h> #include <string.h>
typedef enum { typedef enum {
lme_off,
lme_normal, lme_normal,
lme_spooky, lme_spooky,
lme_eerie, lme_eerie,
@ -70,6 +71,9 @@ int main(void) {
} else if (status_flags.button_press[2]) { } else if (status_flags.button_press[2]) {
status_flags.button_press[2] = false; status_flags.button_press[2] = false;
msg = lme_eerie; msg = lme_eerie;
} else if (status_flags.button_press[3]) {
status_flags.button_press[3] = false;
msg = lme_off;
} else { } else {
continue; continue;
} }