ST7781_driver Remove setWindows()
This commit is contained in:
parent
3fb9bc5cbd
commit
cad65ff535
|
|
@ -235,11 +235,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
|
||||||
*_spi_cmd = SPI_USR;
|
*_spi_cmd = SPI_USR;
|
||||||
}
|
}
|
||||||
while ((*_spi_cmd)&SPI_USR); // Move to later in code to use transmit time usefully?
|
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
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -322,10 +322,6 @@ return;
|
||||||
while(SPI1CMD & SPIBUSY) {}
|
while(SPI1CMD & SPIBUSY) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(NO_MIPI_DCS_REV1)
|
|
||||||
setWindow(0, 0, _width - 1, _height - 1);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -68,9 +68,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
|
||||||
|
|
||||||
while (len>1) {tft_Write_32D(color); len-=2;}
|
while (len>1) {tft_Write_32D(color); len-=2;}
|
||||||
if (len) {tft_Write_16(color);}
|
if (len) {tft_Write_16(color);}
|
||||||
#if defined(NO_MIPI_DCS_REV1)
|
|
||||||
setWindow(0, 0, _width - 1, _height - 1);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -233,9 +233,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
|
||||||
while (!spi_is_writable(spi0)){};
|
while (!spi_is_writable(spi0)){};
|
||||||
spi_get_hw(spi0)->dr = (uint32_t)color;
|
spi_get_hw(spi0)->dr = (uint32_t)color;
|
||||||
}
|
}
|
||||||
#if defined(NO_MIPI_DCS_REV1)
|
|
||||||
setWindow(0, 0, _width - 1, _height - 1);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -382,9 +382,6 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len)
|
||||||
} while ( len>=BUF_SIZE ) ;
|
} while ( len>=BUF_SIZE ) ;
|
||||||
// Send remaining pixels
|
// Send remaining pixels
|
||||||
if (len) HAL_SPI_Transmit(&spiHal, (uint8_t*)col, len<<1, HAL_MAX_DELAY); //*/
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
|
|
||||||
#define WRITE_COMMAND_16 // Change TFT_eSPI::writecommand(); to use tft_Write_16(c);
|
#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_WIDTH 240
|
||||||
#define TFT_HEIGHT 320
|
#define TFT_HEIGHT 320
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,3 @@
|
||||||
_height = _init_width;
|
_height = _init_width;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finish Window
|
|
||||||
setWindow(0, 0, _width - 1, _height - 1);
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue