9 years, 10 months ago.

I2C F401RE on Oled 128x64 SSD1308

In these days i am using oled 128x64 ssd1308 connected to nucleo F401RE I have used the programs and library of WIM HUISKAMP with only changes on pins. I have used PB_8 and PB_9 on nucleo F401RE On program I have changed the pins defined for I2C Bus:

  1. define D_SDA PB_9 p28
  2. define D_SCL PB_8 p27 I2C i2c(D_SDA, D_SCL); The program runs right about serial comunication with PC but the oled not runs. I have used also 5v and R pull-up on SDA and SCL to power the oled The oled not runs it is always off . Someone can tell me some advices about this ? The nucleo F401RE can drive i2c in this application with oled 128x64 ssd1308 ? Thanks

Question relating to:

Dear Mr. Wim Huiskamp I have used your new version of program and lib and i have used SCL = PB8 and SDA = PB9 . Now the oled runs corret.Thanks ( and happy new year)

posted by feror baessato 01 Jan 2015

1 Answer

9 years, 10 months ago.

The Lib uses some low-level I2C methods like start(), write byte and stop() to optimise for speed. I have seen some reports that these methods are not yet working correctly on the F401 and other ST devices. The lib was only tested on the LPC1768. I will have a look at the lib to allow easy switching between the standard and optimized version. That should make it possible to use it on the F401 also. Have you tested with any other I2C device on the F401?

Accepted Answer

Thanks for your answer , at moment I have tested only SCL= PB_8 and SDA= PB_9 , soon i will make other proof with SCL = PB_10 , SDA = PB_3 and SCL= PA_8 , SDA= PB_4 but inside ST manual Table 15 " Arduino connectors on nucleo-F401RE " these configurations are not present . After i will answer You.

posted by feror baessato 01 Jan 2015

There is a new version of the lib and test program on http://developer.mbed.org/components/SSD1306-OLED-128x64/ The lib should automatically select the non-optimised version when compiling for the F401. Note that the software has not been tested since I dont have hardware available at the moment.

posted by Wim Huiskamp 01 Jan 2015