[Fixed]: Flickering Light

This commit is contained in:
Christian Mittring
2018-04-12 00:39:34 +02:00
parent a3959376e3
commit caa6f3a833

View File

@@ -60,11 +60,11 @@ bool run_wake_up(long currentMillis){
} }
else if((delta < ((max_wake_time/3)*2))){ else if((delta < ((max_wake_time/3)*2))){
int color_time = (delta - (max_wake_time/3)) * maxvalue; int color_time = (delta - (max_wake_time/3)) * maxvalue;
set_color(255, int(color_time)+55, int((color_time)/4)); set_color(255, int(color_time)+30, int((color_time)/4));
} }
else if(delta < max_wake_time){ else if(delta < max_wake_time){
int color_time = (delta - ((max_wake_time/3)*2)) * maxvalue; int color_time = (delta - ((max_wake_time/3)*2)) * maxvalue;
set_color(255, 255, int((color_time))+55); set_color(255, 255, int((color_time))+30);
} }
else{ else{
if (delta % 2 == 0){ if (delta % 2 == 0){