Created
May 18, 2022 21:17
-
-
Save youngkin/4648afb4956f9f97b6e2549046125a47 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
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