mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-07-29 18:27:35 +02:00
S3 update
This commit is contained in:
26
TFT_eSPI.cpp
26
TFT_eSPI.cpp
@ -17,7 +17,11 @@
|
||||
#include "TFT_eSPI.h"
|
||||
|
||||
#if defined (ESP32)
|
||||
#include "Processors/TFT_eSPI_ESP32.c"
|
||||
#if defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||
#include "Processors/TFT_eSPI_ESP32_S3.c"
|
||||
#else
|
||||
#include "Processors/TFT_eSPI_ESP32.c"
|
||||
#endif
|
||||
#elif defined (ESP8266)
|
||||
#include "Processors/TFT_eSPI_ESP8266.c"
|
||||
#elif defined (STM32) // (_VARIANT_ARDUINO_STM32_) stm32_def.h
|
||||
@ -743,6 +747,12 @@ void TFT_eSPI::init(uint8_t tc)
|
||||
#elif defined (RM68120_DRIVER)
|
||||
#include "TFT_Drivers/RM68120_Init.h"
|
||||
|
||||
#elif defined (HX8357B_DRIVER)
|
||||
#include "TFT_Drivers/HX8357B_Init.h"
|
||||
|
||||
#elif defined (HX8357C_DRIVER)
|
||||
#include "TFT_Drivers/HX8357C_Init.h"
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef TFT_INVERSION_ON
|
||||
@ -834,6 +844,12 @@ void TFT_eSPI::setRotation(uint8_t m)
|
||||
#elif defined (RM68120_DRIVER)
|
||||
#include "TFT_Drivers/RM68120_Rotation.h"
|
||||
|
||||
#elif defined (HX8357B_DRIVER)
|
||||
#include "TFT_Drivers/HX8357B_Rotation.h"
|
||||
|
||||
#elif defined (HX8357C_DRIVER)
|
||||
#include "TFT_Drivers/HX8357C_Rotation.h"
|
||||
|
||||
#endif
|
||||
|
||||
delayMicroseconds(10);
|
||||
@ -3418,7 +3434,7 @@ void TFT_eSPI::drawPixel(int32_t x, int32_t y, uint32_t color)
|
||||
|
||||
// write to RAM
|
||||
DC_C; tft_Write_8(TFT_RAMWR);
|
||||
#if defined(TFT_PARALLEL_8_BIT) || !defined(ESP32)
|
||||
#if defined(TFT_PARALLEL_8_BIT) || defined(TFT_PARALLEL_16_BIT) || !defined(ESP32)
|
||||
DC_D; tft_Write_16(color);
|
||||
#else
|
||||
DC_D; tft_Write_16N(color);
|
||||
@ -3546,7 +3562,7 @@ void TFT_eSPI::drawPixel(int32_t x, int32_t y, uint32_t color)
|
||||
|
||||
DC_C; tft_Write_8(TFT_RAMWR);
|
||||
|
||||
#if defined(TFT_PARALLEL_8_BIT) || !defined(ESP32)
|
||||
#if defined(TFT_PARALLEL_8_BIT) || defined(TFT_PARALLEL_16_BIT) || !defined(ESP32)
|
||||
DC_D; tft_Write_16(color);
|
||||
#else
|
||||
DC_D; tft_Write_16N(color);
|
||||
@ -5371,7 +5387,7 @@ void TFT_eSPI::getSetup(setup_t &tft_settings)
|
||||
tft_settings.trans = false;
|
||||
#endif
|
||||
|
||||
#if defined (TFT_PARALLEL_8_BIT)
|
||||
#if defined (TFT_PARALLEL_8_BIT) || defined(TFT_PARALLEL_16_BIT)
|
||||
tft_settings.serial = false;
|
||||
tft_settings.tft_spi_freq = 0;
|
||||
#else
|
||||
@ -5470,7 +5486,7 @@ void TFT_eSPI::getSetup(setup_t &tft_settings)
|
||||
tft_settings.pin_tft_rst = -1;
|
||||
#endif
|
||||
|
||||
#if defined (TFT_PARALLEL_8_BIT)
|
||||
#if defined (TFT_PARALLEL_8_BIT) || defined(TFT_PARALLEL_16_BIT)
|
||||
tft_settings.pin_tft_d0 = TFT_D0;
|
||||
tft_settings.pin_tft_d1 = TFT_D1;
|
||||
tft_settings.pin_tft_d2 = TFT_D2;
|
||||
|
Reference in New Issue
Block a user