rheslip / Motivation-Radio-BLEMIDI

Bluetooth MIDI app for Motivation Radio Eurorack Module
MIT License
18 stars 2 forks source link

display activation needed different initialisation for my OLED #2

Open mortenwagner opened 5 years ago

mortenwagner commented 5 years ago

Instead of the lines:

// create display device
#define OLED_RESET -1  // unused port - to keep the compiler happy
Adafruit_SSD1306 display(OLED_RESET);

I needed to put in the following (found in the Adafruit example). After that, "guru meditations" stopped, and the unit came to life :)

// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#define OLED_RESET     -1 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(128, 32, &Wire, OLED_RESET);
guytaylor commented 4 years ago

That fixed mine too. Thx!

ChrisWeiss commented 4 years ago

Mine too - This really needs to be updated, I went through several OLED boards before thinking to check the open bugs and finding this tidbit.