Skip to content

Instantly share code, notes, and snippets.

@youngkin
Last active May 17, 2022 22:24
Show Gist options
  • Save youngkin/caceb3b53d9b15721bd54bea307953ee to your computer and use it in GitHub Desktop.
Save youngkin/caceb3b53d9b15721bd54bea307953ee to your computer and use it in GitHub Desktop.
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