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.
Diff: Adafruit_SSD1306.cpp
- Revision:
- 17:b116da3bffbb
- Parent:
- 16:7fb1d4d3525d
--- a/Adafruit_SSD1306.cpp Tue Nov 11 22:08:20 2014 +0000
+++ b/Adafruit_SSD1306.cpp Mon Apr 19 19:21:26 2021 +0000
@@ -22,6 +22,7 @@
#include "mbed.h"
#include "Adafruit_SSD1306.h"
+#include "platform/mbed_thread.h" //Muss immer rein
#define SSD1306_SETCONTRAST 0x81
#define SSD1306_DISPLAYALLON_RESUME 0xA4
@@ -49,11 +50,11 @@
{
rst = 1;
// VDD (3.3V) goes high at start, lets just chill for a ms
- wait_ms(1);
+ thread_sleep_for(1);
// bring reset low
rst = 0;
// wait 10ms
- wait_ms(10);
+ thread_sleep_for(10);
// bring out of reset
rst = 1;
// turn on VCC (9V?)