summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
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