max7219: add driver support

This commit is contained in:
Tobias Theel
2021-01-30 16:43:09 +01:00
committed by deadprogram
parent 01acd977f3
commit a771641339
6 changed files with 251 additions and 2 deletions
+18
View File
@@ -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
)