Categorygithub.com/supcik/web_ws281x_go
modulepackage
1.0.1
Repository: https://github.com/supcik/web_ws281x_go.git
Documentation: pkg.go.dev

# Functions

MakeWS2811 create an instance of web WS2811 linked to a given hub.
NewHub creates a new hub.
ServeWs handles websocket requests from the peer.

# Constants

Safe value between 0 and 255.
DefaultLedCount is the default number of LEDs on the stripe.
RpiPwmChannels is the number of PWM leds in the Raspberry Pi.
SK6812ShiftWMask is the Shift White Mask.
SK6812StrioBRGW is the StrioBRGW Mode.
SK6812StrioGBRW is the StrioGBRW Mode.
SK6812Strip is the SK6812 Mode.
SK6812StripBGRW is the StripBGRW Mode.
SK6812StripGRBW is the StripGRBW Mode.
SK6812StripRBGW is the StripRBGW Mode.
SK6812StripRGBW is the RGBW Mode.
SK6812WStrip is the SK6812W Mode.
TargetFreq is the target frequency.
WS2811StripBGR is the BGR Mode.
WS2811StripBRG is the BRG Mode.
WS2811StripGBR is the GBR Mode.
WS2811StripGRB is the GRB Mode.
WS2811StripRBG is the RBG Mode.
WS2811StripRGB is the RGB Mode.
WS2812Strip is the WS2812 Mode.

# Variables

DefaultOptions defines sensible default options for MakeWS2811.

# Structs

ChannelOption is the list of channel options.
Client is a middleman between the websocket connection and the hub.
Hub maintains the set of active clients and broadcasts messages to the clients.
Option is the list of device options.
WS2811 represent the ws2811 device.