diff --git a/Processors/TFT_eSPI_ESP32.c b/Processors/TFT_eSPI_ESP32.c index 0bcaa3b..62150cc 100644 --- a/Processors/TFT_eSPI_ESP32.c +++ b/Processors/TFT_eSPI_ESP32.c @@ -235,11 +235,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){ *_spi_cmd = SPI_USR; } while ((*_spi_cmd)&SPI_USR); // Move to later in code to use transmit time usefully? - -#if defined(NO_MIPI_DCS_REV1) - setWindow(0, 0, _width - 1, _height - 1); -#endif - } /*************************************************************************************** diff --git a/Processors/TFT_eSPI_ESP8266.c b/Processors/TFT_eSPI_ESP8266.c index 545befc..83939f9 100644 --- a/Processors/TFT_eSPI_ESP8266.c +++ b/Processors/TFT_eSPI_ESP8266.c @@ -322,10 +322,6 @@ return; while(SPI1CMD & SPIBUSY) {} } -#if defined(NO_MIPI_DCS_REV1) - setWindow(0, 0, _width - 1, _height - 1); -#endif - } /*************************************************************************************** diff --git a/Processors/TFT_eSPI_Generic.c b/Processors/TFT_eSPI_Generic.c index f6c8b21..82c6027 100644 --- a/Processors/TFT_eSPI_Generic.c +++ b/Processors/TFT_eSPI_Generic.c @@ -68,9 +68,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){ while (len>1) {tft_Write_32D(color); len-=2;} if (len) {tft_Write_16(color);} -#if defined(NO_MIPI_DCS_REV1) - setWindow(0, 0, _width - 1, _height - 1); -#endif } /*************************************************************************************** diff --git a/Processors/TFT_eSPI_RP2040.c b/Processors/TFT_eSPI_RP2040.c index 1614ee1..fbcbfe2 100644 --- a/Processors/TFT_eSPI_RP2040.c +++ b/Processors/TFT_eSPI_RP2040.c @@ -233,9 +233,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){ while (!spi_is_writable(spi0)){}; spi_get_hw(spi0)->dr = (uint32_t)color; } -#if defined(NO_MIPI_DCS_REV1) - setWindow(0, 0, _width - 1, _height - 1); -#endif } /*************************************************************************************** diff --git a/Processors/TFT_eSPI_STM32.c b/Processors/TFT_eSPI_STM32.c index 7c365a7..1584d4b 100644 --- a/Processors/TFT_eSPI_STM32.c +++ b/Processors/TFT_eSPI_STM32.c @@ -382,9 +382,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len) } while ( len>=BUF_SIZE ) ; // Send remaining pixels if (len) HAL_SPI_Transmit(&spiHal, (uint8_t*)col, len<<1, HAL_MAX_DELAY); //*/ -#if defined(NO_MIPI_DCS_REV1) - setWindow(0, 0, _width - 1, _height - 1); -#endif } diff --git a/TFT_Drivers/ST7781_Defines.h b/TFT_Drivers/ST7781_Defines.h index b1332ed..1d32193 100644 --- a/TFT_Drivers/ST7781_Defines.h +++ b/TFT_Drivers/ST7781_Defines.h @@ -6,7 +6,6 @@ #define WRITE_COMMAND_16 // Change TFT_eSPI::writecommand(); to use tft_Write_16(c); -#define NO_MIPI_DCS_REV1 // Add setWindow(0, 0, _width - 1, _height - 1); after TFT_eSPI::pushBlock() #define TFT_WIDTH 240 #define TFT_HEIGHT 320 diff --git a/TFT_Drivers/ST7781_Rotation.h b/TFT_Drivers/ST7781_Rotation.h index 7c352ec..753fee9 100644 --- a/TFT_Drivers/ST7781_Rotation.h +++ b/TFT_Drivers/ST7781_Rotation.h @@ -46,6 +46,3 @@ _height = _init_width; break; } - - // Finish Window - setWindow(0, 0, _width - 1, _height - 1);