Created
December 8, 2021 21:40
-
-
Save elbruno/47578bed10cf14c0171dec2da080038e to your computer and use it in GitHub Desktop.
WioTerminalAndPlatformIO.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"TFT_eSPI.h" | |
#include"Free_Fonts.h" //include the header file | |
TFT_eSPI tft; | |
int counter = 10; | |
void setup() { | |
tft.begin(); | |
tft.setRotation(3); | |
tft.fillScreen(TFT_BLACK); //Black background | |
tft.setFreeFont(FM12); | |
} | |
void loop() { | |
if(counter == 0) | |
{ | |
tft.drawString("Wio Terminal",25,50); | |
tft.drawString(" + VSCode ",25,75); | |
tft.drawString(" + PlatformIO ",25,100); | |
tft.drawString(" ",25,125); | |
tft.drawString(" > ROCKS ! O_O ",25,150); | |
tft.drawString("@elbruno",10,200); | |
} | |
else if(counter > 0) | |
{ | |
counter--; | |
tft.drawString("Message show in ...",25,100); | |
tft.drawString(String(counter),25,125); | |
tft.drawString("seconds",50,125); | |
} | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment