Skip to content

Commit 58cac74

Browse files
leonardocavagnisfacchinm
authored andcommitted
Move image declaration to global scope
1 parent 887288e commit 58cac74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/Arduino_H7_Video/examples/ArduinoLogo/ArduinoLogo.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ INCBIN(test, "/home/user/Downloads/test.bin");
1919
Arduino_H7_Video Display(800, 480, GIGA_DISPLAY_SHIELD);
2020
//Arduino_H7_Video Display(720, 480);
2121

22+
Image img_arduinologo(ENCODING_RGB16, (uint8_t *) texture_raw, 300, 300);
23+
2224
void setup() {
2325
Display.begin();
2426

25-
Image img_arduinologo(ENCODING_RGB16, (uint8_t *) texture_raw, 300, 300);
2627
Display.beginDraw();
2728
Display.image(img_arduinologo, (Display.width() - img_arduinologo.width())/2, (Display.height() - img_arduinologo.height())/2);
2829
Display.endDraw();

0 commit comments

Comments
 (0)