Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: created: 2014-11-23 | updated: 2014-11-23

A brand new ground-up C/ASM Driver for WS2811, WS2812S, and WS2812B addressible LEDs.  Thanks to __red__ for introducting me to the Propeller chip, and to JonnyMac for his prior SPIN Driver that sparked my interest in WS2812 LEDs.

This is the first driver I've published, so forgive me if I didn't format it properly.  It works though, I've tested it on dozens of devices and thousands of WS2812s.

Chad McFall- 2014-11-23

// This sample code will light the first 3 leds red, green, and blue:

char outputPin=0;

char numberOfLEDs=10;

char initCog=1;


WS2812 myLedArray;

WS2812init(outputPin, numberOfLEDs, TIMING_WS2812B, &myLedArray, initCog);




WS2812SetLEDInBuffer(0, 20, 00, 00, &myLedArray); //LED 0 Red

WS2812SetLEDInBuffer(1, 00, 20, 00, &myLedArray); //LED 1 Green

WS2812SetLEDInBuffer(2, 00, 00, 20, &myLedArray); //LED 2 Blue



Original File Upload
Package icon cm_ws2812SB_v10.zip5.37 KB