Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created December 25, 2019 03:37
// 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