change led colors slightly and constanly light volume led

This commit is contained in:
interfisch 2020-06-14 11:27:50 +02:00
parent 4994ed9ac3
commit 14f5d2d594
1 changed files with 8 additions and 3 deletions

View File

@ -481,10 +481,11 @@ void loop() {
if ( loopmillis > last_ledupdate+INTERVAL_LEDUPDATE){
last_ledupdate=loopmillis;
switch(menu_mode) {
case 0: //volume
if (poti_reachedposition) { //idle
for(uint8_t i=0;i<leds.numPixels();i++){ //set color of all leds
for(uint8_t i=0;i<leds.numPixels()-1;i++){ //set color of all front leds
leds.setPixelColor(i, Wheel(wheelpos+i*10));
}
}else{ //motor is currently moving
@ -505,9 +506,9 @@ void loop() {
for(uint8_t i=0;i<=MENU_MAXCHANNEL;i++){ //set color of all channel leds
if (menu_mode==1) { //in mute mode
if (getMute(i)) { //not muted
_r = 0; _g = 50; _b = 0;
_r = 0; _g = 50; _b = 0; //Output is enabled
}else{ //muted
_r = 50; _g = 0; _b = 50;
_r = 10; _g = 0; _b = 0; //Output is mued
}
}else if(menu_mode==2) { //in selection mode
if (!getSelection(i)) { //Selected A
@ -533,6 +534,10 @@ void loop() {
break;
}
//Volume LED
leds.setPixelColor(leds.numPixels()-1, Wheel(wheelpos)); //volume poti led
leds.show();
}