lv_port_esp32 icon indicating copy to clipboard operation
lv_port_esp32 copied to clipboard

fatal error: Arduino_H7_Video.h: No such file or directory

Open Marke0505 opened this issue 4 months ago • 0 comments

Hi, i have a Arduino GIGA with the GIGA Display Shield. I want to learn to use the Display, so I looked at the Arduino website. There is an example how to start with the display. I installed: the GIGA Boards (Board Manager) and these librarys: Arduino_GigaDisplayTouch and lvgl (both from the Arduino library). But if I want to verify my code this error is showing:

\NewTouchDisplay\NewTouchDisplay.ino:1:10: fatal error: Arduino_H7_Video.h: No such file or directory #include "Arduino_H7_Video.h" ^~~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1

Compilation error: Arduino_H7_Video.h: No such file or directory

(I followed every step of the example.) This error is with all librarys. Can someone help? Thank you very much

Arduino "Turtorial" Link: https://docs.arduino.cc/tutorials/giga-display-shield/lvgl-guide/

My Code: #include "Arduino_H7_Video.h" #include "lvgl.h" #include "Arduino_GigaDisplayTouch.h"

Arduino_H7_Video Display(800, 480, GigaDisplayShield); Arduino_GigaDisplayTouch TouchDetector;

void setup() { Display.begin(); TouchDetector.begin();

//Display & Grid Setup lv_obj_t* screen = lv_obj_create(lv_scr_act()); lv_obj_set_size(screen, Display.width(), Display.height());

static lv_coord_t col_dsc[] = { 370, 370, LV_GRID_TEMPLATE_LAST }; static lv_coord_t row_dsc[] = { 215, 215, 215, 215, LV_GRID_TEMPLATE_LAST };

lv_obj_t* grid = lv_obj_create(lv_scr_act()); lv_obj_set_grid_dsc_array(grid, col_dsc, row_dsc); lv_obj_set_size(grid, Display.width(), Display.height());

//top left lv_obj_t* obj; obj = lv_obj_create(grid); lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, 0, 1, //column LV_GRID_ALIGN_STRETCH, 0, 1); //row

//bottom left obj = lv_obj_create(grid); lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, 0, 1, //column LV_GRID_ALIGN_STRETCH, 1, 1); //row //top right obj = lv_obj_create(grid); lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, 1, 1, //column LV_GRID_ALIGN_STRETCH, 0, 1); //row

//bottom right obj = lv_obj_create(grid); lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, 1, 1, //column LV_GRID_ALIGN_STRETCH, 1, 1); //row }

void loop() { lv_timer_handler(); }

Marke0505 avatar Feb 09 '24 19:02 Marke0505