Skip to content

Commit

Permalink
Updated comment for software rotation and st7789_i80 also supports hw…
Browse files Browse the repository at this point in the history
… rotate
  • Loading branch information
rzeldent committed Jul 14, 2024
1 parent 230bdd5 commit 7687e9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lvgl_panel_st7262_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lv_display_t *lvgl_lcd_init(uint32_t hor_res, uint32_t ver_res)
lv_display_t *display = lv_display_create(hor_res, ver_res);
log_v("display:0x%08x", display);

// Hardware rotation is supported
// Hardware rotation is not supported
display->sw_rotate = 1;
display->rotation = LV_DISPLAY_ROTATION_0;

Expand Down
2 changes: 1 addition & 1 deletion src/lvgl_panel_st7701_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lv_display_t *lvgl_lcd_init(uint32_t hor_res, uint32_t ver_res)
lv_display_t *display = lv_display_create(hor_res, ver_res);
log_v("display:0x%08x", display);

// Hardware rotation is supported
// Hardware rotation is not supported
display->sw_rotate = 1;
display->rotation = LV_DISPLAY_ROTATION_0;

Expand Down
2 changes: 1 addition & 1 deletion src/lvgl_panel_st7789_i80.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lv_display_t *lvgl_lcd_init(uint32_t hor_res, uint32_t ver_res)
log_v("display:0x%08x", display);

// Hardware rotation is supported
display->sw_rotate = 1;
display->sw_rotate = 0;
display->rotation = LV_DISPLAY_ROTATION_0;

pinMode(ST7789_RD_GPIO, OUTPUT);
Expand Down

0 comments on commit 7687e9e

Please sign in to comment.