Skip to content

Latest commit

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

This project is the main part of all RGB-LED-Strip-Projects: It finally displays the LEDs (WS2812) using neopixel-library

How does this work

Commands are sent via serial:

  • Baudrate: 115200
  • StopBits: 1
  • Parity: None
  • DataBits: 8

Old protocol

Description

Considering you have the old protocol (only shows one color to all LEDs). The protocol is quiet simple: 7 byte each message (R,G,B) Every character above is one byte.

Example

You want to show Yellow (Red 255, Green 255, Blue 0)

Byte0Byte1Byte2Byte3Byte4Byte5Byte6
Hex0x280xFF0x2C0xFF0x2C0x000x29
DescriptionStart (R,G,B) End

New protocol

Description

This protocol support the LED-Strip where each LED is individually controllable.

The message length depends on the amount of LEDs on one strip. The amount has to be programmed manually into the Arduino/ESP in serialRGB.h under #define NUMPIXELS.

The protocol is similar to the old protocol, but the commas are missing, as they are not really needed. The protocol-start and -end is like the old protocol. A ( at the start and a ) at the end The amount of bytes sent is: AmountRGB * 3 + 2.

Example

For this example let's consider that there are three LEDs on the RGB-Strip. The amount of bytes sent are: 3 * 3 + 2 = 11

(RGBRGBRGB) If you want to show it 0LightGreen, 1Orange, 2WeirdBlue:

Byte0Byte1Byte2Byte3Byte4Byte5Byte6Byte7Byte8Byte9Byte10
Hex0x280x800xFF0x800xFF0x800x000x200x500xD50x29
DescriptionStart (R0G0B0R1G1B1R2G3B4) End

About

This project is the main part of all RGB-LED-Strip-Projects: It finally displays the LEDs (WS2812) using neopixel-library.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages