Skip to content

Commit 2c1c667

Browse files
committed
main: update st7735 driver
1 parent f890bb9 commit 2c1c667

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/src/driver/st7735.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ void st7735_refresh_gram(uint8_t *gram)
8383
spi1_trans[2].flags = SPI_TRANS_USE_TXDATA;
8484

8585
spi1_trans[3].length = 4*8,
86-
spi1_trans[3].tx_data[0] = 0x00; // starty hith byte
86+
spi1_trans[3].tx_data[0] = 0x00; // starty high byte
8787
spi1_trans[3].tx_data[1] = 0x1A; // starty low byte
88-
spi1_trans[3].tx_data[2] = 0x00; // starty high byte
89-
spi1_trans[3].tx_data[3] = 0x69; // endy high byte
88+
spi1_trans[3].tx_data[2] = 0x00; // endy high byte
89+
spi1_trans[3].tx_data[3] = 0x69; // endy low byte
9090
spi1_trans[3].user = (void*)1;
9191
spi1_trans[3].flags = SPI_TRANS_USE_TXDATA;
9292

0 commit comments

Comments
 (0)