EasyManuals Logo

Freenove 4WD Smart Car Board for Raspberry Pi User Manual

Default Icon
132 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #75 background imageLoading...
Page #75 background image
Need support? support.freenove.com
71
Chapter 3 Module test (necessary)
www.freenove.com
Reference
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.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Freenove 4WD Smart Car Board for Raspberry Pi and is the answer not in the manual?

Freenove 4WD Smart Car Board for Raspberry Pi Specifications

General IconGeneral
BrandFreenove
Model4WD Smart Car Board for Raspberry Pi
CategoryMicrocontrollers
LanguageEnglish