]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/pattern.c
patterns: 3 bits for duration, 5 bits for mode
[bike-lights.git] / firmware / pattern.c
index 55b64cc6e5bf23729d75c5a676c69708619999ff..77f026ac9cec9ac9686913ff698e01d4fbafc5b0 100644 (file)
@@ -21,8 +21,8 @@ static pattern_t boot_pattern[] = {
        { 0, 0x1 },
        { 1, 0x1 },
        { 0, 0x1 },
-       { 1, 0x10 },
-       { 0, 0x10 },
+       { 1, 0x7 },
+       { 0, 0x7 },
        PATTERN_END
 };
 
@@ -47,7 +47,8 @@ static pattern_t pattern_num[] = {
        { 1, 0x1 }, /*  2 */
        { 0, 0x5 },
        { 1, 0x1 }, /*  1 */
-       { 0, 0xF },
+       { 0, 0x7 },
+       { 0, 0x7 },
        PATTERN_END
 };
 
@@ -72,7 +73,8 @@ static pattern_t pattern_invnum[] = {
        { 0, 0x1 }, /*  2 */
        { 1, 0x5 },
        { 0, 0x1 }, /*  1 */
-       { 1, 0xF },
+       { 1, 0x7 },
+       { 1, 0x7 },
        PATTERN_END
 };