729 views|2 replies

250

Posts

5

Resources
The OP
 

【Anxinke BW16-Kit】+WS2812B lighting [Copy link]

WS2812B is a cascaded LED tricolor lamp with a chip inside. By sending commands from the outside, the brightness of the three primary colors can be controlled to complete the transformation of various colors. It also occupies very little IO and is easy to use.

We can open the routine in Arduino.

We input how many LED beads we have, and then the underlying interface is fixed. Just connect to the corresponding boards.

Two functions are called, with different operations, one is for each LED number to set the color of each light, and the other is global. The number of lights will light up the same color.

voidsetPixelColor(uint16_tled_Number, uint8_trColour, uint8_tbColour, uint8_tgColour);

voidfill(uint8_trColor, uint8_tgColor, uint8_tbColor, uint16_tfirst= 0, uint16_tcount= 0);

This post is from RF/Wirelessly

Latest reply

Control the dimming of the three-color light, thank you   Details Published on 2024-3-17 19:03
 

6570

Posts

0

Resources
2
 

It is more convenient to control the dimming of three-color lights

This post is from RF/Wirelessly

Comments

Control the dimming of the three-color light, thank you  Details Published on 2024-3-17 19:03
 
 

76

Posts

0

Resources
3
 
Jacktang posted on 2024-3-17 18:24 It is more convenient to control the dimming of three-color lights

Control the dimming of the three-color light, thank you

This post is from RF/Wirelessly
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list