File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
libraries/Portenta_lvgl/src Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
#include <lvgl.h>
2
2
3
3
void portenta_init_video ();
4
- void giga_init_video ();
4
+ void giga_init_video (bool landscape = true );
Original file line number Diff line number Diff line change 28
28
#define LV_VER_RES_MAX (800)
29
29
#endif
30
30
31
+ //#define CONFIG_LV_USE_GPU_STM32_DMA2D 1
32
+ //#define CONFIG_LV_GPU_DMA2D_CMSIS_INCLUDE "stm32h747xx.h"
33
+
31
34
/* Color depth:
32
35
* - 1: 1 byte per pixel
33
36
* - 8: RGB233
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ void portenta_init_video() {
188
188
#include " Portenta_Video.h"
189
189
#include " video_modes.h"
190
190
191
- void giga_init_video () {
191
+ void giga_init_video (bool landscape ) {
192
192
// put your setup code here, to run once:
193
193
int ret = -1 ;
194
194
@@ -236,6 +236,10 @@ void giga_init_video() {
236
236
disp_drv.draw_buf = &disp_buf;
237
237
disp_drv.hor_res = lcd_x_size;
238
238
disp_drv.ver_res = lcd_y_size;
239
+ if (landscape) {
240
+ disp_drv.rotated = LV_DISP_ROT_90;
241
+ disp_drv.sw_rotate = 1 ;
242
+ }
239
243
240
244
lv_disp_drv_register (&disp_drv);
241
245
You can’t perform that action at this time.
0 commit comments