X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pattern.c;h=8552240d304165b2dd0378f4b88ea6b2cc083a32;hb=4dcd70de690010bdf0a3489d06508f2ab624b474;hp=efe2ea4e1af48a6b8007f90ab99f6c35534b7eb8;hpb=2c9b86851ec5b510c0508557441ff83cc87ec263;p=bike-lights.git 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 };