From 02ec8cc85eee4b12bf71a7aa1c1a39943e764749 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 16 Dec 2021 21:24:37 +0200 Subject: Initial files --- HelloWorld/HelloWorld.ino | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 HelloWorld/HelloWorld.ino (limited to 'HelloWorld') 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() { + +} -- cgit v1.3.1