Created
August 31, 2016 07:51
-
-
Save h-nari/ab2cef37d6ad316a822041bf1380c80d to your computer and use it in GitHub Desktop.
sample sketch for HSES-LCD24( ESP-8266 + ILI9341 Lcd Display)
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 "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