Skip to content

Instantly share code, notes, and snippets.

@youngkin
Created May 18, 2022 21:17
Show Gist options
  • Save youngkin/4648afb4956f9f97b6e2549046125a47 to your computer and use it in GitHub Desktop.
Save youngkin/4648afb4956f9f97b6e2549046125a47 to your computer and use it in GitHub Desktop.
func writeMax7219(addr byte, value byte) {
// The csPin (chip select) is set to LOW to direct the MAX7219 to accept data from the MOSI line.
// Setting it to HIGH at the end of the function directs the MAX7219 to ignore data on the MOSI line.
csPin.Low()
writeMax7219Byte(addr)
writeMax7219Byte(value)
csPin.High()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment