![](/media/cache/profiles/36388716_10156379864393903_5314622498057224192_n.jpg.50x50_q85.jpg)
Sample code for TI_NEOPIXEL_SPI
Revision 5:dc96362ec4d5, committed 2020-01-04
- Comitter:
- tichise
- Date:
- Sat Jan 04 02:53:47 2020 +0000
- Parent:
- 4:f67355a22107
- Commit message:
- switched back to PixelArray
Changed in this revision
TI_NEOPIXEL_SPI.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f67355a22107 -r dc96362ec4d5 TI_NEOPIXEL_SPI.lib --- a/TI_NEOPIXEL_SPI.lib Thu Jan 02 14:23:13 2020 +0000 +++ b/TI_NEOPIXEL_SPI.lib Sat Jan 04 02:53:47 2020 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/tichise/code/TI_NEOPIXEL_SPI/#70bc3528e07e +https://os.mbed.com/users/tichise/code/TI_NEOPIXEL_SPI/#69bb2a2fa11f
diff -r f67355a22107 -r dc96362ec4d5 main.cpp --- a/main.cpp Thu Jan 02 14:23:13 2020 +0000 +++ b/main.cpp Sat Jan 04 02:53:47 2020 +0000 @@ -15,7 +15,9 @@ if (isRed) { // pixelArray.switchLightOff(pixelCount); // pixelArray.changeColor(totalNumOfRingLED, startNumOfRingLED, endNumOfRingLED, (rgbColor) {50, 10, 170}); - pixelArray.chaseRainbow(totalNumOfRingLED); + + int buffer = 4; + pixelArray.chaseRainbow(totalNumOfRingLED, buffer); } else { // rgbColor topColor = (rgbColor) {255, 0, 0};