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/static_patterns.h | |
parent | 3183889c1f9f41d8cca3b5eee2f1bf00f07b9217 (diff) |
move flash and shutdown patterns to PROGMEM
Diffstat (limited to 'src/static_patterns.h')
-rw-r--r-- | src/static_patterns.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/static_patterns.h b/src/static_patterns.h new file mode 100644 index 0000000..8d708dd --- /dev/null +++ b/src/static_patterns.h @@ -0,0 +1,27 @@ +#ifndef STATIC_PATTERNS_H_ +#define STATIC_PATTERNS_H_ + +#include <avr/pgmspace.h> + +const uint8_t PROGMEM shutdownPattern[] = { + 0x20, 0x40, + 0x01, 0x0f, + 0xff, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xff, + 0x7e, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x7e, + 0x3c, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x3c, + 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, + 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, + 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + +const uint8_t PROGMEM flashingPattern[] = { + 0x20, 0x10, + 0x06, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x07, 0x33, 0x55, 0x98, 0x00, 0x00 +}; + + +#endif /* STATIC_PATTERNS_H_ */ |