Versions in this module Expand all Collapse all v0 v0.7.0 Feb 16, 2022 v0.6.0 Feb 15, 2022 v0.5.0 Feb 15, 2022 Changes in this version + var DefaultConfig = HardwareConfig + type Canvas struct + func NewCanvas(w, h int, config *HardwareConfig) (*Canvas, error) + func (c *Canvas) At(x, y int) color.Color + func (c *Canvas) Bounds() image.Rectangle + func (c *Canvas) Clear() error + func (c *Canvas) Close() error + func (c *Canvas) ColorModel() color.Model + func (c *Canvas) Initialize() error + func (c *Canvas) Render() error + func (c *Canvas) Set(x, y int, color color.Color) + type HardwareConfig struct + Brightness int + Channel int + DMA int + Frequency int + Invert bool + Pin int + StripType StripType + type Matrix interface + At func(position int) color.Color + Close func() error + Initialize func() error + Render func() error + Set func(position int, c color.Color) + func NewWS281x(size int, config *HardwareConfig) (Matrix, error) + type StripType int + const StripBGR + const StripBGRW + const StripBRG + const StripBRGW + const StripGBR + const StripGBRW + const StripGRB + const StripGRBW + const StripRBG + const StripRBGW + const StripRGB + const StripRGBW + type WS281x struct + Config *HardwareConfig + func (c *WS281x) At(position int) color.Color + func (c *WS281x) Close() error + func (c *WS281x) Initialize() error + func (c *WS281x) Render() error + func (c *WS281x) Set(position int, color color.Color)