Cannot make OLED display to work with hardware I2C in Adafruit_SSD1306 library
vagaus Sat Aug 01, 2015 5:32 pm
This is my first post!
First of all I’d like to say thank you for all the people involved in getting STM32 boards to work with the Arduino IDE. I love you all ![]()
Now, to my actual issue.
I have a generic STM board (this one) which I am trying to get this OLED (0,96″) display to work though I2C (using Adafruit_SSD1306 library) but I only managed to get it to work using soft I2C (TwoWire class).
Some information:
- Even though being a software developer I don’t do any embedded work for a living (it is more like a hobby
) - This is the code I’ve changed in Adafruit_SSD1306_STM32.cpp:
//HardWire HWIRE(2, I2C_FAST_MODE); // I2c2
#include <Wire.h>
TwoWire HWIRE(PB6, PB7, SOFT_FAST);
