Skip to content

Instantly share code, notes, and snippets.

@h-nari
Created August 31, 2016 07:51
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 h-nari/ab2cef37d6ad316a822041bf1380c80d to your computer and use it in GitHub Desktop.
Save h-nari/ab2cef37d6ad316a822041bf1380c80d to your computer and use it in GitHub Desktop.
sample sketch for HSES-LCD24( ESP-8266 + ILI9341 Lcd Display)
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 15
#define TFT_CS 2
#define TFT_RST -1
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
tft.begin();
tft.setRotation(3);
tft.setTextSize(5);
tft.fillScreen(ILI9341_BLACK);
tft.setTextColor(ILI9341_GREEN);
tft.setCursor(50,80);
tft.print("Hello !!");
tft.setCursor(100, 140);
tft.setTextSize(4);
tft.setTextColor(ILI9341_YELLOW);
tft.print("ILI9341");
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment