summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-21 20:19:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-21 20:19:55 +0100
commit3a02241ad1fbd89a6603fb699989cb9f3c9b200d (patch)
treef8f3b88f27a38e6ccc7097d37c0dcd82f2234dac /src/system.h
parentd75a6cd36db515a0863a03480d8e5c589a235e22 (diff)
add animation load function -- untested, needs I2C debugging first
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h4
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