We just need to know the pin to use ('''pin 8''') and install the Adafruit NeoPixel Library for ATSAMD21 microcontroller :-)
We just need to know the pin to use ('''pin 8''') and install the Adafruit NeoPixel Library for ATSAMD21 microcontroller :-)
−
The NeoPixel should be viewed as the very first LED of a NeoPixel Strand having only one single LED. This is the reason why the {{fname|pixel.setPixelColor()}} always have its first parameter is set to 0! It means that we change the color of the LED #0 on the pixel strand.
+
The NeoPixel should be viewed as the very first LED of a NeoPixel Strand having only one single LED.
== Installing the library ==
== Installing the library ==
Ligne 43 :
Ligne 41 :
== Test script ==
== Test script ==
The following script demonstrate how to manipulate the onboard NeoPixel.
The following script demonstrate how to manipulate the onboard NeoPixel.
+
+
As there is only one pixel (one pixel on the strand), the function {{fname|pixel.setPixelColor()}} will always have the first parameter is set to 0!
+
+
This means that we change the color of the LED #0 on the ''pixel strand''.