summaryrefslogtreecommitdiff
path: root/HelloWorld
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2021-12-16 21:24:37 +0200
committerYuval Adam <_@yuv.al>2021-12-16 21:24:37 +0200
commit02ec8cc85eee4b12bf71a7aa1c1a39943e764749 (patch)
treebdb5cd0df44e4a2ef2bed8305767550b660d4fa4 /HelloWorld
Initial files
Diffstat (limited to 'HelloWorld')
-rw-r--r--HelloWorld/HelloWorld.ino19
1 files changed, 19 insertions, 0 deletions
diff --git a/HelloWorld/HelloWorld.ino b/HelloWorld/HelloWorld.ino
new file mode 100644
index 0000000..89c7ff8
--- /dev/null
+++ b/HelloWorld/HelloWorld.ino
@@ -0,0 +1,19 @@
+#include"TFT_eSPI.h" //include TFT LCD library
+
+TFT_eSPI tft; //initialize TFT LCD
+
+void setup() {
+ tft.begin(); //start TFT LCD
+ tft.setRotation(3); //set screen rotation
+
+ tft.fillScreen(TFT_RED); //fill background
+
+ tft.setTextColor(TFT_BLACK); //set text color
+ tft.setTextSize(4); //set text size
+ tft.drawString("Hello world!",0,0); //draw text string
+
+}
+
+void loop() {
+
+}