Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
--- 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);
}
--- 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);
--- 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.
--- 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: