Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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