Microcontroller powered WoW classic countdown timer
imgur.com/a/9h5wEoG#btuf4CKPosted Aug 23, 2019, 12:03 AM UTC
Posted Aug 23, 2019, 12:03 AM UTC
Do you have a link to the tutorial on how to get the display to work on the esp? And is it a touch display? I wanted to use ESPhome with this display, but couldn't get it to work. This looks great btw :) I'm actually supersized by the quality of the image
This is the module I'm using. It is available with or without touch.
There is no tutorial for it but it's a straightforward ILI9341 driver IC connected via SPI. It's uses 3.3v for I/O so it won't work with a 5v Arduino without a level shifter. I found the information on LCDWiki to be accurate.
I'm using the Adafruit Gfx library, which isn't the most optimized but it's easy to use and well documented. There are probably better choices for more involved projects. Here's the code I use to create the object:
// For the ESP32 these following are the hardware SPI pins:
#define TFT_MOSI 23
#define TFT_CLK 18
#define TFT_MISO 19
// User defined pins:
#define TFT_DC 13 // Data/Command select
#define TFT_RST 4 // Reset
#define TFT_CS 5 // Chip Select
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
I used a little open source program called lcd-image-converter to convert the bitmap into a C array of uint16_t. This can then be stored directly in flash by adding the PROGMEM directive. The RGB format is the rather odd 16-bit R5G6B5, which take a bit of getting used to.
The display is actually much more vibrant in real life. The video doesn't do it justice.
I always wondered to make a countdown timer project.. Then I looked at my phone and stopped all work
GIFV link
^I ^am ^a ^bot. ^FAQ ^// ^code