From b8e8d71d31246f04d261e8cd71055f4c980a039a Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Wed, 26 Jun 2013 22:06:20 +0200 Subject: [PATCH] control.c: new multi-pwmled panic pattern --- firmware/control.c | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) 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 }; -- 2.43.5