spectrum
This commit is contained in:
parent
16d8cc01dc
commit
f2f0b2dccb
@ -44,7 +44,7 @@ void PrgInit
|
|||||||
states[0] = &green_state;
|
states[0] = &green_state;
|
||||||
states[1] = &red_state;
|
states[1] = &red_state;
|
||||||
states[2] = &blue_state;
|
states[2] = &blue_state;
|
||||||
spectrum_state = r;
|
spectrum_state = 0;
|
||||||
pin = GREEN;
|
pin = GREEN;
|
||||||
lamp_idx = BEG_LAMP_IDX;
|
lamp_idx = BEG_LAMP_IDX;
|
||||||
n_loops = 10;
|
n_loops = 10;
|
||||||
@ -92,7 +92,7 @@ void spectrum()
|
|||||||
if(++blue_state>=LIGHT_MAX) { ++spectrum_state; }
|
if(++blue_state>=LIGHT_MAX) { ++spectrum_state; }
|
||||||
break;
|
break;
|
||||||
case rb:
|
case rb:
|
||||||
if(--red_state<=LIGHT_MIN) { ++spectrum_state; }
|
if(--red_state<=LIGHT_MIN) { spectrum_state = 0; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user