diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-02-21 20:19:55 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-02-21 20:19:55 +0100 |
commit | 3a02241ad1fbd89a6603fb699989cb9f3c9b200d (patch) | |
tree | f8f3b88f27a38e6ccc7097d37c0dcd82f2234dac /src/system.h | |
parent | d75a6cd36db515a0863a03480d8e5c589a235e22 (diff) |
add animation load function -- untested, needs I2C debugging first
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h index 14dc257..165ce7b 100644 --- a/src/system.h +++ b/src/system.h @@ -9,8 +9,10 @@ class System { private: uint16_t want_shutdown; + uint8_t current_anim_no; void shutdown(void); void receive(void); + void loadPattern(uint8_t anim_no); enum RxExpect : uint8_t { START1, @@ -29,7 +31,7 @@ class System { RxExpect rxExpect; public: - System() { want_shutdown = 0; rxExpect = START1; }; + System() { want_shutdown = 0; rxExpect = START1; current_anim_no = 0;}; /** * Initial MCU setup. Turns off unused peripherals to save power |