#include "lights.h"
-typedef struct {
- unsigned char mode: 3;
- unsigned char duration: 5;
-} pattern_t;
-
static unsigned char led_counters[N_LEDS];
static pattern_t *led_patterns[N_LEDS];
-#define PATTERN_END { 0, 0 }
pattern_t off_pattern[] = {
{ 0, 0x1F },
PATTERN_END
};
+pattern_t on_pattern[] = {
+ { 1, 0x1F },
+ PATTERN_END
+};
+
pattern_t blink_pattern[] = {
{ 1, 0x4 },
{ 0, 0x8 },