Skip to content

A simple library for bit-banging WS2801 individually addressable RGB LED strips through digital ports on the VEX Cortex using RobotC.

License

Notifications You must be signed in to change notification settings

EvolvedAwesome/WS2801-VEX-FunctionLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WS2801-VEX-FunctionLib

Provides a RobotC (Cortex) software interface layer for communicating with and controlling the SPI-based WS2801 individually addressable LED strips through a bit-banged communication protocol on the VEX cortex.

Usage example in the examples folder.

The library uses a simple structure typedef'ed as "ws2801_data" in order to provide all the necessary data to the library functions, and to make it possible to use multiple Strips in the same programme.

Functions used:

void ws2801_sendByte(ws2801_data *stripData, ubyte value);
void ws2801_init(ws2801_data *stripData, ubyte length);
void ws2801_init(ws2801_data *stripData, ubyte length, tSensors clockPin, tSensors dataPin);
void ws2801_sendFrame(ws2801_data *stripData, ubyte red, ubyte green, ubyte blue);
void ws2801_setStripColour(ws2801_data *stripData, ubyte red, ubyte green, ubyte blue);

About

A simple library for bit-banging WS2801 individually addressable RGB LED strips through digital ports on the VEX Cortex using RobotC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages