Skip to content
  • Home
  • Account
  • Restricted content
  • OBEX
  • Chips Tips
  • Logout
  • Shop
  • QuickBytes
Propeller OBEX
  • OBEX
  • Forum
Login
Propeller OBEX

Propeller 2

  • Configuring Visual Studio Code for Programming the P2 on Mac, Windows, and Linux
  • Breakout Board Options for P2 Edge Modules
  • Solar Panel Monitoring Demo (Intro to Using Video 3 of 3)
  • Wireless Programming with the ESP8266 WX Module
  • Brushless DC Motor Control Demo
  • Colorful Terminal Output with ANSI Escape Sequences
  • XBee RF Transparent and API Mode Demo
  • DS3231 Real Time Clock I2C Demo
  • Multiple Servo Control (up to 64) Object
  • Multiple Serial Port (8 UART – 16 Tx/Rx) Object
  • Goertzel Operation with Ultrasonic Transducers
  • Web Page Control of WS2811 LEDs Using the IoT Gateway on Raspberry Pi
  • 320×240 LCD Driver for ILI9341 Controller and XPT2046 Touch Screen
  • Digital Sample ADC to DAC + Analog Frequency to DAC
  • Using Smart Pins to Measure Frequency Output of TSL235R Light-to-Frequency Sensor
  • Ping))) Ultrasonic Distance Sensor with Graphical Debug Demo
  • Simple Analog Input
  • P2 Edge 16 MB Flash Reader and Explorer Utility
  • LED Matrix used as an I/O Test Utility
  • Arlo Conversion to P2 with the Universal Motor Controller
  • Five Buttons On One Pin
  • P2 RTC Add-on Board Demo
  • Simple Video Driver – Using Images (Intro to Using Video 2 of 3)
  • Starting Your P2 Project with a Spin2 Template
  • E-Ink Display Demo
  • MAX7219 LED Display SPI Demo
  • DHT11, DHT22, CM2302 Humidity and Temperature Sensor Object
  • NMEA GPS String Parsing
  • Floating Point Math: DEBUG and Terminal Display Example
  • LEDs – Beyond the Basics
  • Quadrature Encoder Object
  • P2 RTC Add-on with GPS Module
  • DVI/VGA Text Driver Demo
  • PCF8574 I2C LCD Demo
  • Simple Sound Engine Demo
  • 1-Wire Driver with DS18B20 Temperature Sensor Demo
  • Send Email from the Propeller 2 Using the IoT Gateway on Raspberry Pi
  • I2C Device Bus Scanner Utility
  • 32-Channel ADC Object
  • Tetris
  • Video Hardware with Character Map Demo (Intro to Using Video 1 of 3)
  • WS2811, WS2812, WS2812b, WS2813, SK6812x NeoPixel Object
View Categories
  • Home
  • Docs
  • Quick Bytes
  • Propeller 2
  • WS2811, WS2812, WS2812b, WS2813, SK6812x NeoPixel Object

WS2811, WS2812, WS2812b, WS2813, SK6812x NeoPixel Object

Reading Time: 1 min read

Description #

The WS2811/WS2812/WS2812B, WS2813, and SK6812x (or NeoPixel) are RGB LEDs with a tiny controller managed through a single IO. These are available in many form factors including flexible tape, string lights for trees, round and square PCBs, flexible panels, and water-tight strips. The LEDs are available in 5 VDC and 12 VDC formats; power management is important when using a large number of these (or even a small number at full brightness). For example, a Propeller 1 WS2811 application used in the Bud Light Super Bowl commercial required Li-Po battery power supplies worn by roller-skating Blinky, Pinky, Inky and Clyde. 

The Propeller 2 is particularly adept at controlling these LEDs with its precision timing, leaving extra processors (cogs) for other tasks also used with LEDs (like MIDI, music, audio, motor control, and sensors). The object presented in this example was created by JonnyMac and was shared in the series of JonnyMac Holiday Spin2 Beginner Series videos. The source code is well-supported with a YouTube video explaining how the objects are used (see link in Additional Resources).  

The jm_rgbx_pixel.spin2 driver supports WS2811, WS2812, WS2812b, WS2813, and SK6812x RGB LEDs. In the top file (04_rgbx_pixel_demo.spin2) you need specify which device you are using in the pub setup() method:

pub setup()
'' Configure IO and objects for application
  strip.start_2812(@pixbuf, N_PIXELS, PIX_DAT, 5)    
      ' start pixel driver for WS2812 *
  term.tstart(BR_TERM)                               
      ' start terminal io *

After you compile and load the Flash, start Parallax Serial Terminal and press “enter” in the white pane. Choose the demo you’d like to run by pressing one of the keys shown in the menu:

The source code collection has three archived  examples in the zip. The differences between them:

  • The first shows IF-ELSE for display selection
  • The second shows CASE for display selection
  • The third uses CASE with animation 
Parts Used #
  • P2 Edge Module
  • P2 Edge Breadboard
  • P2 Live Forum Holiday Spin2 Kit
  • WS2812 RGB Module
Source Code #
  • WS2811, WS2812, WS2812b, WS2813, SK6812x Object Zip 4
  • WS2811, WS2812, WS2812b, WS2813, SK6812x Object Zip 5
  • WS2811, WS2812, WS2812b, WS2813, SK6812x Object Zip 6
Programming Language #
  • Spin 2
Tools and Operating System #
  • Propeller Tool for Windows
Additional Resources #
  • Propeller 2 Spin Documentation
  • JonnyMac Spin2 for Beginners Holiday Series Video (YouTube)
Document Author #
  • Ken Gracey
Source Code Author #
  • Jon McPhalen
Was this useful ?

Share This Article :

  • Facebook
  • X
  • LinkedIn
Still stuck? How can we help?

Still stuck? How can we help?

Updated on September 29, 2026
Video Hardware with Character Map Demo (Intro to Using Video 1 of 3)Configuring Visual Studio Code for Programming the P2 on Mac, Windows, and Linux
Table of Contents
  • Description
  • Parts Used
  • Source Code
  • Programming Language
  • Tools and Operating System
  • Additional Resources
  • Document Author
  • Source Code Author

Copyright © 2026 - Parallax Inc.
599 Menlo Drive | Rocklin, CA 95765 | USA