Browse Source

application: add strobe animations

spark_strober
King Kévin 4 years ago
parent
commit
e9078e831e
  1. 9
      application.c

9
application.c

@ -241,10 +241,11 @@ static void process_command(char* str) @@ -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)

Loading…
Cancel
Save