Cannot make OLED display to work with hardware I2C in Adafruit_SSD1306 library
This is my first post!
First of all I’d like to say thank you for all the people involved in getting STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog 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_SSD1306SSD1306Displays, touch panels and LEDs…SPI bus for the tf card from the board anyway. I had one of those 0.96″ oled modules( ssd1306 ) connected to mks sbase v1.3 before I fried the board so I think I’ll try that displ…View in hardware catalog 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_SSD1306SSD1306Displays, touch panels and LEDs…SPI bus for the tf card from the board anyway. I had one of those 0.96″ oled modules( ssd1306 ) connected to mks sbase v1.3 before I fried the board so I think I’ll try that displ…View in hardware catalog _STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog .cpp:
//HardWire HWIRE(2, I2C_FAST_MODE); // I2c2 #include <Wire.h> TwoWire HWIRE(PB6, PB7, SOFT_FAST);
