Skip to content

Instantly share code, notes, and snippets.

@sankarcheppali
Created November 30, 2024 18:42
Show Gist options
  • Save sankarcheppali/5581b0d68cad9298554dd74d902fd796 to your computer and use it in GitHub Desktop.
Save sankarcheppali/5581b0d68cad9298554dd74d902fd796 to your computer and use it in GitHub Desktop.
wio_terminal_lcd_helloworld
#include "TFT_eSPI.h"
TFT_eSPI tft;
void setupLCD(){
tft.begin();
digitalWrite(LCD_BACKLIGHT, HIGH); // turn on the backlight
tft.setRotation(3);
tft.fillScreen(TFT_BLACK); //Black background
tft.setFreeFont(&FreeSansOblique12pt7b); //select Free, Sans, Oblique, 12pt.
}
void setup() {
Serial.begin(115200);
delay(1000);
setupLCD();
Serial.println("Hello World");
tft.fillScreen(TFT_BLACK);
tft.setCursor(100,110);
tft.print("Hello World");
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment