-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display.begin() always true #251
Comments
I can confirm this is the case on ESP32-WROOM-32 38 pin dev module as well, in Arduino IDE 1.8.19 and 2.0.1. |
Yes, i display.begin returns always TRUE |
Well, i digged around within the source code of the lib and found NO return of FALSE if the display is not avaiable ! I thought about a workaround and here is the tested and working result: instead of: Additional Info: if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) { works but NOT as expected , it only returns FALSE if not enough memory for display buffer is avaiable. |
Yes, it's clearly an issue. The only time |
Hi there! I have an issue where the
display.begin()
function will always return true regardless if there is an actual display plugged in or not. It works fine if there is a display, of course, but if there is none it doesn't register that and thinks there still is one.Arduino board: Raspberry Pi Pico with arduino-pico core
Arduino IDE version (found in Arduino -> About Arduino menu): 2.0.1
List the steps to reproduce the problem below (if possible attach a sketch or
copy the sketch code in too):
ssd1306_128x64_i2c
example.Serial.println(F("SSD1306 allocation failed"));
will never show becausedisplay.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)
will never befalse
.Maybe it's got something to do with the Raspberry Pi Pico? I don't think so tbh, because everything else works fine, so there must be an issue here.
The text was updated successfully, but these errors were encountered: