forked from arduino-libraries/Arduino_GigaDisplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleText.ino
More file actions
39 lines (32 loc) · 817 Bytes
/
SimpleText.ino
File metadata and controls
39 lines (32 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
Simple Text
This example initializes the 800x480 display on the
GIGA Display Shield, and writes "Hello World" at
specific coordinates.
The circuit:
- GIGA R1 WiFi
- GIGA Display Shield
Created 4 sept 2023
by Karl Söderby
This example code is in the public domain.
*/
#ifdef __MBED__
#include "Arduino_H7_Video.h"
#include "ArduinoGraphics.h"
Arduino_H7_Video Display(800, 480, GigaDisplayShield);
//Arduino_H7_Video Display(1024, 768, USBCVideo);
#elif defined(__ZEPHYR__)
#include "Arduino_GigaDisplay.h"
#include "ArduinoGraphics.h"
Display Display(800, 480);
#endif
void setup() {
Display.begin();
Display.clear();
Display.beginDraw();
Display.textFont(Font_5x7);
Display.stroke(255, 255, 255);
Display.text("Hello world!", 50, 50);
Display.endDraw();
}
void loop() {}