GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - arnegue/Arduino-RGBDriver: This project is the main part of all RGB-LED-Strip-Projects: It finally displays the LEDs (WS2812) using neopixel-library.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
README.md
README.md
 
 
serialRGB.h
serialRGB.h
 
 
serialRGB.ino
serialRGB.ino
 
 
setup_esp.cpp
setup_esp.cpp
 
 
setup_esp.h
setup_esp.h
 
 

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)

Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6
Hex 0x28 0xFF 0x2C 0xFF 0x2C 0x00 0x29
Description Start ( 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:

Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 Byte9 Byte10
Hex 0x28 0x80 0xFF 0x80 0xFF 0x80 0x00 0x20 0x50 0xD5 0x29
Description Start ( R0 G0 B0 R1 G1 B1 R2 G3 B4 ) End

About

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

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.