From fbfadac23b3b8cb868d0a1cfbc232669699c1acd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 1 Mar 2016 19:04:15 +0100 Subject: move flash and shutdown patterns to PROGMEM --- src/system.h | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'src/system.h') 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, -- cgit v1.2.3