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.
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 |
--- 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