Skip to content

Commit

Permalink
Update drv_st7735.c
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 4, 2024
1 parent 36e740a commit f5ff26e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/driver/drv_st7735.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ inline void spiwrite(uint8_t c)
// Fast SPI bitbang swiped from LPD8806 library
for (uint8_t bit = 0x80; bit; bit >>= 1)
{
if (c & bit)
if (c & bit) {
SET_DATA_HIGH;
else
}
else {
SET_DATA_LOW;
}
SET_CLK_HIGH;
SET_CLK_LOW;
}
Expand Down

0 comments on commit f5ff26e

Please sign in to comment.