Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Marke0505 opened this issue Feb 9, 2024 · 0 comments
Open

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

Marke0505 opened this issue Feb 9, 2024 · 0 comments

Comments

@Marke0505
Copy link

Marke0505 commented Feb 9, 2024

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();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant