mirror of
https://github.com/adafruit/Adafruit_SSD1306.git
synced 2026-07-27 20:05:50 +00:00
wait for display
500ms delay on startup for i2c displays. The Feather ESP32-C6 required this and I suspect a few other boards.
This commit is contained in:
@@ -60,6 +60,9 @@ static const unsigned char PROGMEM logo_bmp[] =
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
// Wait for display
|
||||
delay(500);
|
||||
|
||||
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
|
||||
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
|
||||
Serial.println(F("SSD1306 allocation failed"));
|
||||
|
||||
@@ -60,6 +60,9 @@ static const unsigned char PROGMEM logo_bmp[] =
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
// Wait for display
|
||||
delay(500);
|
||||
|
||||
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
|
||||
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
|
||||
Serial.println(F("SSD1306 allocation failed"));
|
||||
|
||||
@@ -60,6 +60,9 @@ static const unsigned char PROGMEM logo_bmp[] =
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
// Wait for display
|
||||
delay(500);
|
||||
|
||||
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
|
||||
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
|
||||
Serial.println(F("SSD1306 allocation failed"));
|
||||
|
||||
Reference in New Issue
Block a user