Created
December 25, 2019 03:37
See https://medium.com/@ly.lee/optimising-pinetimes-display-driver-with-rust-and-mynewt-3ba269ea2f5c
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
// If this is a Command Byte, set DC Pin to low, else set DC Pin to high. | |
hal::hal_gpio_write( | |
SPI_DC_PIN, | |
if is_command { 0 } | |
else { 1 } | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment