Skip to content

Commit

Permalink
all thinks work
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Oct 5, 2018
1 parent 3a41ebb commit 42c769c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions LEDControl.ino
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void handleNotFound();

unsigned long rgb = 0;
int brightness = 0;
int fadeAmount = 5;
int fadeAmount = 3;
byte r,g,b;
int color1=6;
int color2=6;
Expand Down Expand Up @@ -500,12 +500,14 @@ void strobe(){
delay(50);
}
void breathing(){
Serial.println(brightness);
ledColor(color1);
strip.setBrightness(brightness);
strip.show();
server.handleClient();
brightness = brightness + fadeAmount;
if (brightness <= 0 || brightness >= 255) {
if (brightness <= 0 || brightness >= 100) {
fadeAmount = -fadeAmount;
}
delay(30);
delay(125);
}

0 comments on commit 42c769c

Please sign in to comment.