Introduction: X-2812B Test

Picture of X-2812B Test

X-2812b has 4 ws2812b RGB LEDs. You can have a look at this video first.

https://youtu.be/ApgWs4l2y_U

Step 1: X-project Member

Picture of X-project Member

Step 2: Test Code

Picture of Test Code

Library

https://github.com/adafruit/Adafruit_NeoPixel

Code example

https://github.com/lspoplove/D-duino/blob/master/X-Project/ws2812/ws2812b.ino

There is a dial switch which you can adjust D3~D10 to control ws2812.

Do not forget dial number 1 to the right side.

Comments

IgorF36 (author)2017-06-27

I switched on the D3 and used the code example above on a D-Duino-32 (with, obviously, an X2812B on top) but the four pixels still remain white.

Where I'm wrong?

kd8bxp (author)IgorF362017-10-11

Use the GPIO number (I think it's 0 zero) - I had a similar issue. There is some timing issue with the display and the neo-pixels when using the D-Duino32. That issue doesn't seem to be there with the D-Duino ESP8266. Here is my instructable if you are interested.

https://www.instructables.com/id/ESP32X-Project-Cheerlight-Badge-Using-MQTT/