From: Jan "Yenya" Kasprzak Date: Wed, 29 Aug 2012 14:23:45 +0000 (+0200) Subject: patterns modified X-Git-Tag: gedasymbols-20120913~41 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=6e520930d8d0b0ed0085671ea844c1cc419812b0;p=bike-lights.git patterns modified --- diff --git a/pattern.c b/pattern.c index efe2ea4..8552240 100644 --- a/pattern.c +++ b/pattern.c @@ -12,7 +12,7 @@ static pattern_t *led_patterns[N_LEDS]; #define PATTERN_END { 0, 0 } pattern_t off_pattern[] = { - { 0, 5 }, + { 0, 0x1F }, PATTERN_END }; @@ -22,6 +22,11 @@ pattern_t blink_pattern[] = { PATTERN_END }; +pattern_t mode1_pattern[] = { + { 1, 0x1F }, + PATTERN_END +}; + pattern_t boot_pattern[] = { { 1, 0x6 }, { 0, 0x6 }, @@ -43,23 +48,25 @@ pattern_t boot_pattern[] = { }; pattern_t pattern_num[] = { - { 1, 0x1 }, + { 1, 0x1 }, /* 10 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 9 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 8 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 7 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 6 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 5 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 4 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 3 */ { 0, 0x4 }, - { 1, 0x1 }, + { 1, 0x1 }, /* 2 */ + { 0, 0x4 }, + { 1, 0x1 }, /* 1 */ { 0, 0x1F }, PATTERN_END };