X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=firmware%2Fcontrol.c;h=a90bb713dfa846f9df2775b347180f8a6290d7f4;hp=da59972b135c59c2cb2b5678aa4bb578724a327c;hb=4728997cb5f6eff94c8a9d9e253d1675b7516987;hpb=09d91b6d1d9c5c6dd9971d9f16e31f66b9c5474e diff --git a/firmware/control.c b/firmware/control.c index da59972..a90bb71 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -30,23 +30,23 @@ static pattern_t panic_pattern[] = { }; pattern_t on1_pattern [] = { - { 1, 0x10 }, + { 1, 0x7 }, PATTERN_END }; static pattern_t on2_pattern [] = { - { 2, 0x10 }, + { 2, 0x7 }, PATTERN_END }; static pattern_t on3_pattern [] = { - { 3, 0x10 }, + { 3, 0x7 }, PATTERN_END }; static pattern_t brake_pattern [] = { { 4, 0x2 }, - { 3, 0x8 }, + { 3, 0x7 }, PATTERN_END }; @@ -54,11 +54,11 @@ static pattern_t normal2_pattern[] = { { 2, 0x1 }, { 0, 0x1 }, { 2, 0x1 }, - { 0, 0x8 }, + { 0, 0x7 }, { 1, 0x1 }, { 0, 0x1 }, { 1, 0x1 }, - { 0, 0x8 }, + { 0, 0x7 }, PATTERN_END }; @@ -66,11 +66,11 @@ static pattern_t normal3_pattern[] = { { 3, 0x1 }, { 0, 0x1 }, { 3, 0x1 }, - { 0, 0x8 }, + { 0, 0x7 }, { 1, 0x1 }, { 0, 0x1 }, { 1, 0x1 }, - { 0, 0x8 }, + { 0, 0x7 }, PATTERN_END }; @@ -78,29 +78,32 @@ static pattern_t normal4_pattern[] = { { 4, 0x1 }, { 0, 0x1 }, { 4, 0x1 }, - { 0, 0x8 }, + { 0, 0x7 }, { 1, 0x1 }, { 0, 0x1 }, { 1, 0x1 }, - { 0, 0x8 }, + { 0, 0x7 }, PATTERN_END }; static pattern_t slow1_pattern[] = { { 1, 0x01 }, - { 0, 0x10 }, + { 0, 0x7 }, + { 0, 0x7 }, PATTERN_END }; static pattern_t slow2_pattern[] = { { 2, 0x01 }, - { 0, 0x10 }, + { 0, 0x7 }, + { 0, 0x7 }, PATTERN_END }; static pattern_t slow3_pattern[] = { { 3, 0x01 }, - { 0, 0x10 }, + { 0, 0x7 }, + { 0, 0x7 }, PATTERN_END };