mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2024-09-21 02:17:13 +00:00
9f17920115
Added SD card storage for smooth fonts with ESP32 ESP32 will use PSRAM (if available and enabled) to hold smooth font metrics Improve performance of ESP32 Sprite shared functions Add basic ST7789 driver option Latent bug fixes for pin mask
22 lines
520 B
C
22 lines
520 B
C
|
|
// This is the command sequence that initialises the ST7789 driver
|
|
|
|
// Configure ST7789 display
|
|
|
|
{
|
|
static const uint8_t PROGMEM
|
|
st7789[] = {
|
|
8,
|
|
TFT_SLPOUT, TFT_INIT_DELAY, 255,
|
|
TFT_COLMOD, 1+TFT_INIT_DELAY, 0x55, 10,
|
|
TFT_MADCTL, 1, 0x00,
|
|
TFT_CASET, 4, 0x00, 0x00, 0x00, 0xF0,
|
|
TFT_PASET, 4, 0x00, 0x00, 0x00, 0xF0,
|
|
TFT_INVON, TFT_INIT_DELAY, 10,
|
|
TFT_NORON, TFT_INIT_DELAY, 10,
|
|
TFT_DISPON, TFT_INIT_DELAY, 255
|
|
};
|
|
|
|
commandList(st7789);
|
|
}
|
|
// End of ST7789 display configuration
|