mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-03 21:39:00 +00:00
max7219: add driver support
This commit is contained in:
committed by
deadprogram
parent
01acd977f3
commit
a771641339
@@ -0,0 +1,18 @@
|
||||
package max72xx
|
||||
|
||||
const (
|
||||
REG_NOOP byte = 0x00
|
||||
REG_DIGIT0 byte = 0x01
|
||||
REG_DIGIT1 byte = 0x02
|
||||
REG_DIGIT2 byte = 0x03
|
||||
REG_DIGIT3 byte = 0x04
|
||||
REG_DIGIT4 byte = 0x05
|
||||
REG_DIGIT5 byte = 0x06
|
||||
REG_DIGIT6 byte = 0x07
|
||||
REG_DIGIT7 byte = 0x08
|
||||
REG_DECODE_MODE byte = 0x09 // turn of for led matrix, turn on for digits
|
||||
REG_INTENSITY byte = 0x0A
|
||||
REG_SCANLIMIT byte = 0x0B
|
||||
REG_SHUTDOWN byte = 0x0C // turn on for no shutdown mode
|
||||
REG_DISPLAY_TEST byte = 0x0F // turn off for no display test
|
||||
)
|
||||
Reference in New Issue
Block a user