Documentation ¶
Index ¶
- Constants
- type Device
- func (this *Device) Brightness(intensity byte) error
- func (this *Device) Clear(cascadeId int, redraw bool) error
- func (this *Device) ClearAll(redraw bool) error
- func (this *Device) Close()
- func (this *Device) Command(reg Max7219Reg, value byte) error
- func (this *Device) Flush() error
- func (this *Device) GetCascadeCount() int
- func (this *Device) GetLedLineCount() int
- func (this *Device) Open(spibus int, spidevice int, brightness byte) error
- func (this *Device) ScrollLeft(redraw bool) error
- func (this *Device) ScrollRight(redraw bool) error
- func (this *Device) SetBufferLine(cascadeId int, position int, value byte, redraw bool) error
- func (this *Device) SevenSegmentDisplay(toDisplay string) error
- type Matrix
- type Max7219Reg
Constants ¶
View Source
const ( MAX7219_REG_NOOP Max7219Reg = 0 MAX7219_REG_DIGIT0 = iota MAX7219_REG_DIGIT1 MAX7219_REG_DIGIT2 MAX7219_REG_DIGIT3 MAX7219_REG_DIGIT4 MAX7219_REG_DIGIT5 MAX7219_REG_DIGIT6 MAX7219_REG_DIGIT7 MAX7219_REG_DECODEMODE MAX7219_REG_INTENSITY MAX7219_REG_SCANLIMIT MAX7219_REG_SHUTDOWN MAX7219_REG_DISPLAYTEST = 0x0F MAX7219_REG_LASTDIGIT = MAX7219_REG_DIGIT7 )
View Source
const MAX7219_DIGIT_COUNT = MAX7219_REG_LASTDIGIT - MAX7219_REG_DIGIT0 + 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) Brightness ¶
func (*Device) GetCascadeCount ¶
func (*Device) GetLedLineCount ¶
func (*Device) ScrollLeft ¶
func (*Device) ScrollRight ¶
func (*Device) SetBufferLine ¶
func (*Device) SevenSegmentDisplay ¶
type Max7219Reg ¶
type Max7219Reg byte
Click to show internal directories.
Click to hide internal directories.