Versions in this module Expand all Collapse all v1 v1.0.0 Oct 20, 2023 Changes in this version + const MatrixEmulatorENV + var DefaultConfig = HardwareConfig + type Animation interface + Next func() (image.Image, <-chan time.Time, error) + type Canvas struct + func NewCanvas(m Matrix) *Canvas + 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) Render() error + func (c *Canvas) Set(x, y int, color color.Color) + type HardwareConfig struct + Brightness int + ChainLength int + Cols int + DisableHardwarePulsing bool + HardwareMapping string + InverseColors bool + PWMBits int + PWMLSBNanoseconds int + Parallel int + Rows int + ScanMode ScanMode + ShowRefreshRate bool + type Matrix interface + Apply func([]color.Color) error + At func(position int) color.Color + Close func() error + Geometry func() (width, height int) + Render func() error + Set func(position int, c color.Color) + func NewRGBLedMatrix(config *HardwareConfig, rt *RunTimeConfig) (c Matrix, err error) + type RGBLedMatrix struct + Config *HardwareConfig + func (c *RGBLedMatrix) Apply(leds []color.Color) error + func (c *RGBLedMatrix) At(position int) color.Color + func (c *RGBLedMatrix) Close() error + func (c *RGBLedMatrix) Geometry() (width, height int) + func (c *RGBLedMatrix) Initialize() error + func (c *RGBLedMatrix) Render() error + func (c *RGBLedMatrix) Set(position int, color color.Color) + type RunTimeConfig struct + Gpio_slowdown int + type ScanMode int8 + const Interlaced + const Progressive + type ToolKit struct + Canvas *Canvas + Transform func(img image.Image) *image.NRGBA + func NewToolKit(m Matrix) *ToolKit + func (tk *ToolKit) Close() error + func (tk *ToolKit) PlayAnimation(a Animation) error + func (tk *ToolKit) PlayGIF(r io.Reader) (chan bool, error) + func (tk *ToolKit) PlayImage(i image.Image, delay time.Duration) error + func (tk *ToolKit) PlayImageUntil(i image.Image, notify <-chan time.Time) error + func (tk *ToolKit) PlayImages(images []image.Image, delay []time.Duration, loop int) chan bool