setEyelightPetals(id,petalsnum,petals)
Customize eye lamps, 8 petals (pixels) light up in different colors.
Last updated
Customize eye lamps, 8 petals (pixels) light up in different colors.
Last updated
Parameters
Type
Description
id
unsigned char
ID number to be controlled, range 0 ~ 10
petalsnum
int
Number of light petals (pixels) to be lit, range 0 ~ 8, default is 8
petals
int
Set the color of each light petal. Fill in a fixed Json format {“data” [first lamp petal number, r, g, b, second lamp petal number, r, g, b, ....]}
{“Data” [First lamp petal number, r, g, b, second lamp petal number, r, g, b, ..., eighth lamp petal number, r, g, b ,]} Each light bulb of the eye light has a fixed number.
Use the ukitexplore V2 board to control the ID-1 eye light to be on, as shown in the above figure: