adafruit / Adafruit_SSD1306

Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs
http://www.adafruit.com/category/63_98
Other
1.81k stars 984 forks source link

I2C SSD1306 does not work in Arduino Leonardo #278

Closed rfrht closed 2 months ago

rfrht commented 2 months ago

(writing for documentation sake, hoping this helps other users)

Arduino board:

rfrht commented 2 months ago

Root cause

My setup was using the GPIO port 2. After further investigation, I found in this picture that GPIO lines 2 and 3 are bridged to the ports SCL and SDA in the Arduino Leonardo. Essentially, it was conflicting and hampering the I2C operations.

Resolution

By moving my GPIO ports (and fixing the code) to somewhere else fixed the issue and the display now works nicely.