ST7781_driver Remove setWindows()

This commit is contained in:
Haroldo M Murata 2021-05-15 14:54:08 -03:00
parent 3fb9bc5cbd
commit cad65ff535
7 changed files with 0 additions and 22 deletions

View File

@ -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
}
/***************************************************************************************

View File

@ -322,10 +322,6 @@ return;
while(SPI1CMD & SPIBUSY) {}
}
#if defined(NO_MIPI_DCS_REV1)
setWindow(0, 0, _width - 1, _height - 1);
#endif
}
/***************************************************************************************

View File

@ -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
}
/***************************************************************************************

View File

@ -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
}
/***************************************************************************************

View File

@ -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
}

View File

@ -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

View File

@ -46,6 +46,3 @@
_height = _init_width;
break;
}
// Finish Window
setWindow(0, 0, _width - 1, _height - 1);