summaryrefslogtreecommitdiff
path: root/HelloWorld
diff options
context:
space:
mode:
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() {
+
+}