Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created December 8, 2021 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/47578bed10cf14c0171dec2da080038e to your computer and use it in GitHub Desktop.
Save elbruno/47578bed10cf14c0171dec2da080038e to your computer and use it in GitHub Desktop.
WioTerminalAndPlatformIO.cpp
#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