diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-03-01 19:04:15 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-03-01 19:04:15 +0100 |
commit | fbfadac23b3b8cb868d0a1cfbc232669699c1acd (patch) | |
tree | aa0f5c0995f76de564a6e0253c4a00265b06027d /src/system.h | |
parent | 3183889c1f9f41d8cca3b5eee2f1bf00f07b9217 (diff) |
move flash and shutdown patterns to PROGMEM
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/system.h b/src/system.h index 8960b77..5866aec 100644 --- a/src/system.h +++ b/src/system.h @@ -2,38 +2,6 @@ #define SHUTDOWN_THRESHOLD 2048 -// TODO find a nice image -const uint8_t systemPowerdownImage[] = { - 0x00, - 0x00, - 0x08, - 0x08, - 0x08, - 0x08, - 0x00, - 0x00 -}; - -// TODO dito? -const uint8_t systemFlashImage[] = { - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x07, - 0x33, - 0x55, - 0x98, - 0x00, - 0x00 -}; - /** * Contains the system idle loop. Checks for button presses, handles * standby/resume, reads data from the Modem and updates the Display. @@ -45,8 +13,7 @@ class System { void shutdown(void); void receive(void); void loadPattern(uint8_t anim_no); - void dispPowerdown(); - void dispFlashing(); + void loadPattern_P(const uint8_t *anim_ptr); enum TransmissionControl : uint8_t { BYTE_END = 0x84, |