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.
Revision 14:f5b0f2709e19, committed 2020-06-21
- Comitter:
- amouroug
- Date:
- Sun Jun 21 03:21:48 2020 +0000
- Parent:
- 13:b2b3e5430f81
- Commit message:
- Updated Content to allow for building ILI9341 Driver on embed-os 6 Release.; Added missing Stream.h header causing compilation issues.
Changed in this revision
diff -r b2b3e5430f81 -r f5b0f2709e19 SPI_TFT_ILI9341.cpp --- a/SPI_TFT_ILI9341.cpp Wed Jun 25 16:51:27 2014 +0000 +++ b/SPI_TFT_ILI9341.cpp Sun Jun 21 03:21:48 2020 +0000 @@ -158,10 +158,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 ----------------------------------------------------*/ @@ -297,12 +297,12 @@ wr_cmd(0x11); // sleep out _cs = 1; - wait_ms(100); + thread_sleep_for(100); wr_cmd(0x29); // display on _cs = 1; - wait_ms(100); + thread_sleep_for(100); }
diff -r b2b3e5430f81 -r f5b0f2709e19 SPI_TFT_ILI9341_NUCLEO.cpp --- a/SPI_TFT_ILI9341_NUCLEO.cpp Wed Jun 25 16:51:27 2014 +0000 +++ b/SPI_TFT_ILI9341_NUCLEO.cpp Sun Jun 21 03:21:48 2020 +0000 @@ -230,10 +230,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 ----------------------------------------------------*/ @@ -389,13 +389,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); // Configure the DMA controller init-structure DMA_StructInit(&DMA_InitStructure);
diff -r b2b3e5430f81 -r f5b0f2709e19 SPI_TFT_ILI9341_NXP.cpp --- 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.
diff -r b2b3e5430f81 -r f5b0f2709e19 TextDisplay.h --- a/TextDisplay.h Wed Jun 25 16:51:27 2014 +0000 +++ b/TextDisplay.h Sun Jun 21 03:21:48 2020 +0000 @@ -17,6 +17,7 @@ #define MBED_TEXTDISPLAY_H #include "mbed.h" +#include "Stream.h" class TextDisplay : public Stream { public: