spectrum
This commit is contained in:
parent
6f279e01d8
commit
7fd61af329
@ -45,10 +45,9 @@ void PrgInit
|
|||||||
states[0] = &red_state;
|
states[0] = &red_state;
|
||||||
states[1] = &green_state;
|
states[1] = &green_state;
|
||||||
states[2] = &blue_state;
|
states[2] = &blue_state;
|
||||||
spectrum_state = pr;
|
spectrum_state = 0;
|
||||||
pin = RED;
|
pin = RED;
|
||||||
lamp_idx = BEG_LAMP_IDX;
|
lamp_idx = BEG_LAMP_IDX;
|
||||||
n_loops = 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int PrgTic
|
int PrgTic
|
||||||
@ -94,6 +93,7 @@ void spectrum()
|
|||||||
break;
|
break;
|
||||||
case mg:
|
case mg:
|
||||||
if(--green_state<LIGHT_MIN) {spectrum_state = 0;}
|
if(--green_state<LIGHT_MIN) {spectrum_state = 0;}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
spectrum_state = 0;
|
spectrum_state = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user