Documentation
¶
Overview ¶
Package ht16k33 implements interfacing code to Holtek HT16K33 Alphanumeric 16x8 LED driver.
More Details ¶
Datasheets ¶
http://www.holtek.com/documents/10179/116711/HT16K33v120.pdf
Product Page ¶
Index ¶
Examples ¶
Constants ¶
const ( BlinkOff = 0x00 Blink2Hz = 0x02 Blink1Hz = 0x04 BlinkHalfHz = 0x06 )
Blinking frequencies.
const I2CAddr uint16 = 0x70
I2CAddr i2c default address.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlinkFrequency ¶
type BlinkFrequency byte
BlinkFrequency display frequency must be a value allowed by the HT16K33.
type Dev ¶
type Dev struct {
// contains filtered or unexported fields
}
Dev is a handler to ht16k33 controller
func NewI2C ¶
NewI2C returns a Dev object that communicates over I2C.
To use on the default address, ht16k33.I2CAddr must be passed as argument.
func (*Dev) SetBlink ¶
func (d *Dev) SetBlink(freq BlinkFrequency) error
SetBlink Blink display at specified frequency.
func (*Dev) SetBrightness ¶
SetBrightness of entire display to specified value.
Supports 16 levels, from 0 to 15.
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
Display is a handler to control an alphanumeric display based on ht16k33.
func NewAlphaNumericDisplay ¶
NewAlphaNumericDisplay returns a Display object that communicates over I2C to ht16k33.
To use on the default address, ht16k33.I2CAddr must be passed as argument.