diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-02-22 20:12:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-02-22 20:12:53 +0100 |
commit | 82a7e72c9dc6bb94180b8b860488b27099939b7c (patch) | |
tree | fbf1946e238b365407cb19ffe9e52af841d4b700 /src/system.h | |
parent | cb1c87e6a371d405b7064b66002127c9d500c7d4 (diff) |
quick&dirty animation switcher
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h index 165ce7b..5a2c199 100644 --- a/src/system.h +++ b/src/system.h @@ -14,6 +14,13 @@ class System { void receive(void); void loadPattern(uint8_t anim_no); + enum ButtonMask : uint8_t { + BUTTON_NONE = 0, + BUTTON_LEFT = 1, + BUTTON_RIGHT = 2, + BUTTON_BOTH = 3 + }; + enum RxExpect : uint8_t { START1, START2, @@ -29,9 +36,10 @@ class System { }; RxExpect rxExpect; + ButtonMask btnMask; public: - System() { want_shutdown = 0; rxExpect = START1; current_anim_no = 0;}; + System() { want_shutdown = 0; rxExpect = START1; current_anim_no = 0; btnMask = BUTTON_NONE;}; /** * Initial MCU setup. Turns off unused peripherals to save power |