Created
November 30, 2024 18:42
-
-
Save sankarcheppali/5581b0d68cad9298554dd74d902fd796 to your computer and use it in GitHub Desktop.
wio_terminal_lcd_helloworld
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" | |
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