Skip to content

Commit

Permalink
TFT SPI 151Mhz target speed
Browse files Browse the repository at this point in the history
  • Loading branch information
xrip committed Jan 16, 2024
1 parent cf03a2d commit 1d70ee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/st7789/st7789.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define SERIAL_CLK_DIV 2.f
#define SERIAL_CLK_DIV 2.5f
#define MADCTL_BGR_PIXEL_ORDER (1<<3)
#define MADCTL_ROW_COLUMN_EXCHANGE (1<<5)
#define MADCTL_COLUMN_ADDRESS_ORDER_SWAP (1<<6)
Expand Down Expand Up @@ -135,6 +135,7 @@ void graphics_init() {
for (int i = 0; i < sizeof palette; i++ ) {
graphics_set_palette(i, 0x0000);
}
clrScr(0);
}

void inline graphics_set_mode(const enum graphics_mode_t mode) {
Expand Down

0 comments on commit 1d70ee5

Please # to comment.