From: Jan "Yenya" Kasprzak Date: Wed, 26 Jun 2013 20:06:20 +0000 (+0200) Subject: control.c: new multi-pwmled panic pattern X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b8e8d71d31246f04d261e8cd71055f4c980a039a;p=bike-lights.git control.c: new multi-pwmled panic pattern --- diff --git a/firmware/control.c b/firmware/control.c index efc61ad..a789acc 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -4,28 +4,27 @@ #include "lights.h" static pattern_t panic_pattern[] = { - { 3, D_1 }, // FIXME: will be 4, but let's be safe while testing - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, - { 3, D_1 }, - { 0, D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, + { PWM_PAT(2, 0, 0), D_1 }, + { PWM_PAT(0, 0, 2), D_1 }, + { PWM_PAT(0, 0, 0), D_1 }, PATTERN_END };