Skip to content

Commit

Permalink
fixed led colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Rossmann committed Nov 27, 2020
1 parent 45327ca commit 21aa086
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Software/co2ampel/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ void ledSetColor(Color color) {
break;
case YELLOW:
fill_solid(led1,NUMPIXELS1,CRGB::Black);
fill_solid(led2,NUMPIXELS2,CRGB(255,100,0));
fill_solid(led2,NUMPIXELS2,CRGB(255,128,0));
break;
case GREEN:
fill_solid(led1,NUMPIXELS1,CRGB::Green);
fill_solid(led2,NUMPIXELS2,CRGB::Black);
break;
case BLUE:
fill_solid(led1,NUMPIXELS1,CRGB::Black);
fill_solid(led1,NUMPIXELS1,CRGB::Blue);
fill_solid(led2,NUMPIXELS2,CRGB::Red);
break;
case WHITE:
Expand All @@ -83,8 +83,8 @@ void ledSetColor(Color color) {
fill_solid(led2,NUMPIXELS2,CRGB::Red);
break;
case YELLOW2:
fill_solid(led1,NUMPIXELS1,CRGB(255,100,0));
fill_solid(led2,NUMPIXELS2,CRGB(255,100,0));
fill_solid(led1,NUMPIXELS1,CRGB(255,128,0));
fill_solid(led2,NUMPIXELS2,CRGB(255,128,0));
break;
case GREEN2:
fill_solid(led1,NUMPIXELS1,CRGB::Green);
Expand Down

0 comments on commit 21aa086

Please sign in to comment.