39 PROCESS(fader_process,
"LED fader");
40 AUTOSTART_PROCESSES(&fader_process);
46 struct pt fade_pt, fade_in_pt, fade_out_pt;
52 static unsigned char onoroff;
60 for(f->delay = 3980; f->delay > 20; f->delay -= 20) {
76 for(f->delay = 20; f->delay < 3980; f->delay += 20) {
94 PT_SPAWN(&f->fade_pt, &f->fade_in_pt, fade_in(f));
95 PT_SPAWN(&f->fade_pt, &f->fade_out_pt, fade_out(f));
105 init_fader(
struct fader *f,
int led)
115 static struct fader red, green, yellow;
121 init_fader(&red, LEDS_RED);
122 init_fader(&green, LEDS_GREEN);
123 init_fader(&yellow, LEDS_YELLOW);
147 if(ev == PROCESS_EVENT_TIMER) {