TLIGHT_PRODUCTS / WS281X
Embed: (wiki syntax)

« Back to documentation index

WS281X Class Reference

WS281X Class Reference

WS281X. More...

#include <WS281X.h>

Inherits RGBPixels.

Public Types

enum  RGBOrder
 

Order of r, g and b bytes.

More...

Public Member Functions

 WS281X (PinName txPin, PinMode pinMode=PullNone, int maxPixels=MAX_PIXELS, RGBOrder rgbOrder=WS281X::RGB)
 Initializes the addressable led bus.

Detailed Description

WS281X.

Definition at line 22 of file WS281X.h.


Member Enumeration Documentation

enum RGBOrder

Order of r, g and b bytes.

Definition at line 28 of file WS281X.h.


Constructor & Destructor Documentation

WS281X ( PinName  txPin,
PinMode  pinMode = PullNone,
int  maxPixels = MAX_PIXELS,
RGBOrder  rgbOrder = WS281X::RGB 
)

Initializes the addressable led bus.

Parameters:
txPin- The output pin on wich the addressable leds are connected
pinMode- The output pin mode PullUp, PullDown, PullNone, OpenDrain
maxPixels- Number of the addressable leds
RGBOrder- The order in wich the r, g and b bytes are expected

Definition at line 28 of file WS281X.cpp.