Need support? support.freenove.com
Chapter 3 Module test (necessary)
ledIndex( Index, R, G, B)
This function has 4 parameters.
The first one is the index of the LED that you want to control. Its value is hexadecimal. There are LED0~7.
The rest 3 parameters are R G B value of color respectively.
For example, ledindex(0x01,255,0,0) makes LED 0 light to red; ledeindex(0x40,0,255,0) makes LED 6 light
green.
colorWipe(strip, color, wait_ms)
This function erases the color of one pixel at a time. It has three input parameters: strip represents the
Neopixel object, color represents the color to be erased, and wait_ms represents the erasure interval. The
default is 50ms. For example, colorWipe(strip, Color(255,0,0),20) means that the LED0 is red first, wait for
20ms, and then the LED1 is also red, until all eight LEDs are lit and red.