Documentation
¶
Index ¶
- type Panel
- func (p *Panel) Clear(state bool)
- func (p *Panel) Close()
- func (p *Panel) Color(x, y int) color.RGBA
- func (p *Panel) Get(x, y int) bool
- func (p *Panel) GetInt(x, y int) int
- func (p *Panel) PrintState()
- func (p *Panel) Queue()
- func (p *Panel) Refresh()
- func (p *Panel) Send()
- func (p *Panel) Set(x, y int, state bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Panel ¶
type Panel struct { Address []byte // nil implies broadcast, okay if just one panel Width int Height int State [][]bool Port *serial.Port }
Panel represents a single flipdot panel
func NewPanel ¶
NewPanel returns a new Panel with the given size, attached to the given port. The panel's Close() should be called when done.
func (*Panel) PrintState ¶
func (p *Panel) PrintState()
func (*Panel) Queue ¶
func (p *Panel) Queue()
Queue the state of the board to the panel, show when Refresh() is called (used for multiple panels)
Click to show internal directories.
Click to hide internal directories.