![Adafruit Feather M4 Express Manual Download Page 127](http://html1.mh-extra.com/html/adafruit/feather-m4-express/feather-m4-express_manual_2845857127.webp)
led = neopixel.NeoPixel(board.NEOPIXEL, 1)
to
10
so it reads:
led = neopixel.NeoPixel(board.NEOPIXEL, 10)
.
This tells the code to look for 10 LEDs instead of only 1. Now save the code and watch the rainbow go! You can make
the same
1
to
10
change to the previous examples as well, and use
led.fill
to light up all the LEDs in the colors you
chose! For more details, check out the
NeoPixel section of the CPX guide
(https://adafru.it/Bem)
!
© Adafruit Industries
https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51
Page 132 of 183