Lib for the new LCD Display with ILI9341 controller A fork of the original library https://os.mbed.com/users/dreschpe/code/SPI_TFT_ILI9341/ . This branch of the fork accounts for issue with Mbed OS 6.0 compiling issues followed by a missing header file.
Diff: SPI_TFT_ILI9341_NXP.cpp
- Revision:
- 14:f5b0f2709e19
- Parent:
- 13:b2b3e5430f81
--- a/SPI_TFT_ILI9341_NXP.cpp Wed Jun 25 16:51:27 2014 +0000 +++ b/SPI_TFT_ILI9341_NXP.cpp Sun Jun 21 03:21:48 2020 +0000 @@ -174,10 +174,10 @@ wait_us(50); _reset = 1; // end hardware reset - wait_ms(5); + thread_sleep_for(5); wr_cmd(0x01); // SW reset - wait_ms(5); + thread_sleep_for(5); wr_cmd(0x28); // display off /* Start Initial Sequence ----------------------------------------------------*/ @@ -333,13 +333,13 @@ spi_bsy(); _cs = 1; - wait_ms(100); + thread_sleep_for(100); wr_cmd(0x29); // display on spi_bsy(); _cs = 1; - wait_ms(100); + thread_sleep_for(100); // setup DMA channel 0 LPC_SC->PCONP |= (1UL << 29); // Power up the GPDMA.