Compare commits

...

2 Commits

Author SHA1 Message Date
ZMiguel Alves 4ce5408e02
Update README.md 2020-01-02 10:32:35 +00:00
José Valdiviesso 48ca0c1698 Extra mode
Rebecca purple mode
2019-06-10 22:23:09 +01:00
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# WS2812B_RGB_Strip_Controler
- custom PCB design
- made do with with arduino pro micro
- made to work with arduino pro micro

View File

@ -42,7 +42,7 @@ int SatVal = 255;
int ValVal = 255;
int mode = 1;
int nModes = 3; //total number of modes
int nModes = 4; //total number of modes
uint8_t gHue = 0; // rotating "base color" used by many of the patterns
@ -288,6 +288,10 @@ void rainbowMode(int mData){
gHue += 2;
}
void rebeccaMode(int mData){
fill_solid(leds,NUM_LEDS,CRGB(40,20,60));
}
void modeAction(int mData){
switch(mode){
case 1:
@ -299,6 +303,9 @@ void modeAction(int mData){
case 3:
rainbowMode(mData);
break;
case 4:
rebeccaMode(mData);
break;
}
}