Documentation ¶
Index ¶
- func NewClient(network, addr string, size int) (canvas.Matrix, error)
- func Serve(m canvas.Matrix) error
- type ApplyArgs
- type ApplyReply
- type Client
- func (c *Client) Apply(leds []color.Color) error
- func (c *Client) At(position int) color.Color
- func (c *Client) Close() error
- func (c *Client) Geometry() (width, height int)
- func (c *Client) Render() error
- func (c *Client) Set(position int, col color.Color)
- func (c *Client) SetBrightness(b uint8) error
- type CloseArgs
- type CloseReply
- type GeometryArgs
- type GeometryReply
- type Matrix
- type SetBrightnessArgs
- type SetBrightnessReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplyReply ¶
type ApplyReply struct{}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
RGBLedMatrix matrix representation for ws281x
func (*Client) At ¶
At return an Color which allows access to the LED display data as if it were a sequence of 24-bit RGB values.
func (*Client) SetBrightness ¶
type CloseReply ¶
type CloseReply struct{}
type GeometryArgs ¶
type GeometryArgs struct{}
type GeometryReply ¶
type GeometryReply struct{ Width, Height int }
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
func (*Matrix) Geometry ¶
func (m *Matrix) Geometry(_ *GeometryArgs, reply *GeometryReply) error
func (*Matrix) SetBrightness ¶
func (m *Matrix) SetBrightness(a *SetBrightnessArgs, _ *SetBrightnessReply)
type SetBrightnessArgs ¶
type SetBrightnessArgs struct{ B uint8 }
type SetBrightnessReply ¶
type SetBrightnessReply struct{}
Click to show internal directories.
Click to hide internal directories.