color details belowĬommandx2 | RedOn | GreenUp | BlueOff, // red to yellowĬommandx2 | RedDown | GreenOn | BlueOff, // yellow to greenĬommandx2 | RedOff | GreenOn | BlueUp, // green to cyanĬommandx2 | RedOff | GreenDown | BlueOn, // cyan to blueĬommandx2 | RedUp |GreenOff | BlueOn, // blue to majentaĬommandx2 | RedOn | GreenOff | BlueDown // majenta to red - NEW - Added this to create a longer rainbow. The S pins needs to be pulsed 128 times to allow each transition to occur before changing to the next step A LED following this sequence will phase through a rainbow of colors. Some constants we will used to create a rainbow pattern. We'll use this to store commands before sending to the LEDs. #define RAINBOW_RUN_COUNT 25 //Set how many times the rainbow action will run - NEW - Added this to show the loop count for the LED rainbow effect is not related to the led count #define LEDCount 20 //Set how many LEDs we'll be driving. Example code for the RGBStrip library used to drive a strip of LEDs using the HL1606 Controller.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |