Documentation ¶
Index ¶
- func NewClient(network, addr string) (rgbmatrix.Matrix, error)
- func Serve(m rgbmatrix.Matrix)
- 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) GetBrightness() int
- func (c *Client) Render() error
- func (m *Client) Set(position int, c color.Color)
- func (c *Client) SetBrightness(i int)
- type CloseArgs
- type CloseReply
- type GeometryArgs
- type GeometryReply
- type RPCMatrix
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) GetBrightness ¶
func (*Client) SetBrightness ¶
type CloseReply ¶
type CloseReply struct{}
type GeometryArgs ¶
type GeometryArgs struct{}
type GeometryReply ¶
type GeometryReply struct{ Width, Height int }
type RPCMatrix ¶
type RPCMatrix struct {
// contains filtered or unexported fields
}
func (*RPCMatrix) Geometry ¶
func (m *RPCMatrix) Geometry(_ *GeometryArgs, reply *GeometryReply) error
Click to show internal directories.
Click to hide internal directories.