similar to off, but does not last forever
// error led
return number_pattern(1 + ambient_zone);
} else {
// error led
return number_pattern(1 + ambient_zone);
} else {
- return off_pattern; // for now
+ return jiffies > 500 ? number_pattern(2) : zero_pattern; // for now
#define PATTERN_FOREVER 0x1F
#define PATTERN_END { 0, 0 }
extern pattern_t off_pattern[];
#define PATTERN_FOREVER 0x1F
#define PATTERN_END { 0, 0 }
extern pattern_t off_pattern[];
+extern pattern_t zero_pattern[];
extern pattern_t on_pattern[];
extern pattern_t on_pattern[];
+extern pattern_t mode1_pattern[];
void pattern_init();
void patterns_next_tick();
void pattern_init();
void patterns_next_tick();
{ 0, PATTERN_FOREVER },
};
{ 0, PATTERN_FOREVER },
};
+pattern_t zero_pattern[] = {
+ { 0, 0x10 },
+ PATTERN_END
+};
+
pattern_t on_pattern[] = {
{ 1, PATTERN_FOREVER },
};
pattern_t on_pattern[] = {
{ 1, PATTERN_FOREVER },
};
unsigned char i;
for (i = 0; i < N_LEDS; i++)
unsigned char i;
for (i = 0; i < N_LEDS; i++)
- led_set_pattern(i, off_pattern);
+ led_set_pattern(i, zero_pattern);
led_set_pattern(N_PWMLEDS+1, boot_pattern);
test_running = 0;
led_set_pattern(N_PWMLEDS+1, boot_pattern);
test_running = 0;