Skip to content

OLED initialization using I2C failes sometimes #2

Description

@nebomuk

Used hardware:
SSD1306 based OLED display and Arduino Nano. Display is connected via I2C.

Sometimes, the OLED display stays black after starting the t-rex-duino app.
I could not identify the specific reason in the source code for this but I found the following workaround:

When initializing the display with another SSD1306 library before the custom I2C code of the t-rex-duino app is executed, the display works properly.
For example when putting

Adafruit_SSD1306 display = Adafruit_SSD1306(...);
display.begin();

in the first lines of the setup(); function, the OLED display always turns on.

Is it possible that there's some kind of initialization bytes missing in the custom I2C SSD1306 code of the t-rex-duino app?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions