Documentation ¶
Index ¶
- Constants
- func ScrollMessage(msg string, devices []*EightByEight, speed byte)
- type Device
- func (bp *Device) Addr() byte
- func (bp *Device) BusNum() byte
- func (bp *Device) Clear() (err error)
- func (bp *Device) Init(addr, busNum byte) (err error)
- func (bp *Device) ReadDisplay() (err error)
- func (bp *Device) SetBlinkRate(blinkRate byte) (err error)
- func (bp *Device) SetBrightness(brightness byte) (err error)
- func (bp *Device) SetBufferRow(row byte, value uint16) (err error)
- func (bp *Device) WriteDisplay() (err error)
- type EightByEight
Constants ¶
View Source
const ( REGISTER_DISPLAY_SETUP = 0x80 REGISTER_SYSTEM_SETUP = 0x20 REGISTER_DIMMING = 0xE0 BLINKRATE_OFF = 0x00 BLINKRATE_2HZ = 0x01 BLINKRATE_1HZ = 0x02 BLINKRATE_HALFHZ = 0x03 )
View Source
const FONT_WIDTH = 6
Fonts are defined as 5x7, but we include an extra pixel in the width so they are spaced one pixel apart
Variables ¶
This section is empty.
Functions ¶
func ScrollMessage ¶
func ScrollMessage(msg string, devices []*EightByEight, speed byte)
Types ¶
type Device ¶
type Device struct { ImmediateUpdate bool // contains filtered or unexported fields }
func (*Device) ReadDisplay ¶
func (*Device) SetBlinkRate ¶
func (*Device) SetBrightness ¶
func (*Device) WriteDisplay ¶
type EightByEight ¶
type EightByEight struct {
Device
}
func NewEightByEight ¶
func NewEightByEight(addr, bus byte) (e *EightByEight, err error)
func ParseDevices ¶
func ParseDevices(deviceList string) (devices []*EightByEight, err error)
Helper func to generate a list of devices based on an input string matching the spec addr:bus,addr:bus...
func (*EightByEight) Pixel ¶
func (e *EightByEight) Pixel(x, y byte) bool
Click to show internal directories.
Click to hide internal directories.