From e9078e831ea59a445d03c8b5002ea4b507f66d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sun, 28 Oct 2018 22:25:40 +0100 Subject: [PATCH] application: add strobe animations --- application.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application.c b/application.c index 8384009..962ddb9 100644 --- a/application.c +++ b/application.c @@ -241,10 +241,11 @@ static void process_command(char* str) #define STROBE_ON 0 /**< LED is on when pin is low (open-drain allows 5V on) */ /* strobe animations (on + off times in ms) */ -/** single strobe */ -static const uint16_t strobe_single[] = {100, 0}; -/** double strobe */ -static const uint16_t strobe_double[] = {100, 200, 100, 0}; +static const uint16_t strobe1[] = {100, 0}; +static const uint16_t strobe2[] = {100, 100, 100, 0}; +static const uint16_t strobe3[] = {100, 100, 100, 100, 100, 0}; +static const uint16_t strobe5[] = {50, 50, 50, 50, 50, 50, 50, 50, 50, 0}; +static const uint16_t strobe10[] = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}; /** switch strobe power on */ static void strobe_on(void)