Hack star
Published © MIT

TFT display on Wokwi Arduino simulator - New feature!-2022

🌟This is a simple "Hello World" for ILI9341 LCD". Wokwi Embedded Systems simulator is used. Add this to your collections now!♥✨

BeginnerProtip1 hour10,683

Things used in this project

Story

Read more

Schematics

Interfacing ILI9341 to Arduino on Wokwi Arduino Simulator

Code

Interfacing ILI9341 to Arduino on Wokwi Arduino Simulator

Arduino
/*
  Simple "Hello World" for ILI9341 LCD

  https://wokwi.com/arduino/projects/308024602434470466
*/

#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

void setup() {
  tft.begin();

  tft.setCursor(26, 120);
  tft.setTextColor(ILI9341_RED);
  tft.setTextSize(3);
  tft.println("Hello, TFT!");

  tft.setCursor(20, 160);
  tft.setTextColor(ILI9341_GREEN);
  tft.setTextSize(2);
  tft.println("I can has colors?");

  // Meme reference: https://english.stackexchange.com/questions/20356/origin-of-i-can-haz
}

void loop() { }

Credits

Hack star

Hack star

75 projects • 120 followers
an Arduino enthusiast and an electronic hobbyist

Comments