Adafruit SSD1331 library for Mbed OS6, specifically tested on Digilent Pmod OLEDrgb and NUCLEO-L432KC
Dependents: ollin-ja-samin-hieno-ihmislaskin MCLAB10 OLEDrgb_MP OLEDrgb_MIC3_L432KC_OS6_hk
Revision 1:5fe0e63aef2e, committed 2020-08-29
- Comitter:
- timo_k2
- Date:
- Sat Aug 29 11:03:02 2020 +0000
- Parent:
- 0:e8e869596683
- Commit message:
- For the Mbed OS 6 wait_ms(200) replaced with ; ThisThread::sleep_for(200ms);; for all the similar wait_ms lines.
Changed in this revision
Adafruit_SSD1331.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e8e869596683 -r 5fe0e63aef2e Adafruit_SSD1331.cpp --- a/Adafruit_SSD1331.cpp Wed Dec 13 20:41:59 2017 +0000 +++ b/Adafruit_SSD1331.cpp Sat Aug 29 11:03:02 2020 +0000 @@ -241,7 +241,7 @@ writeCommand(SSD1331_CMD_FILL); writeCommand(0xFF); drawRect(x,y,w,h,color); - wait_ms(SSD1331_DELAYS_HWFILL); + ThisThread::sleep_for(SSD1331_DELAYS_HWFILL); writeCommand(SSD1331_CMD_FILL); writeCommand(0x00); } @@ -288,7 +288,7 @@ writeCommand(y0); writeCommand(x1); writeCommand(y1); - wait_ms(SSD1331_DELAYS_HWCLEAR); + ThisThread::sleep_for(SSD1331_DELAYS_HWCLEAR); } void Adafruit_SSD1331::clearScreen() { @@ -353,11 +353,11 @@ CS=0; RES=1; - wait_ms(200); + ThisThread::sleep_for(200ms); RES=0; - wait_ms(200); + ThisThread::sleep_for(200ms); RES=1; - wait_ms(200); + ThisThread::sleep_for(200ms); // Initialization Sequence writeCommand(SSD1331_CMD_DISPLAYOFF); // 0xAE