Last active
May 17, 2022 22:24
-
-
Save youngkin/caceb3b53d9b15721bd54bea307953ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const csPin = rpio.Pin(uint8(8)) //csPin represents the chip select pin and specifies it is on GPIO pin 8 | |
const NUM_CHARS = 37 // Number of characters that can be displayed | |
const MATRIX_ROW = 8 // The number of rows of LEDs on the MAX7219 | |
var disp1 = [][]byte{ | |
{0x3C, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x3C}, //0 | |
{0x08, 0x18, 0x28, 0x08, 0x08, 0x08, 0x08, 0x08}, //1 | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment