B4R Question rAdafruitSSD1306 lib (does NOT work) vs. Inline C (works)

KMatle

Expert
Licensed User
I have an ESP32 with an onboard OLED Display. @Peter Simpson wrote a nice example which works like a charm. Peter showed some connection parms but it doesn't work with the lib. The I2cScanner shows no devices.

Could someone explain the problem? Is it a bug in the lib?

Of course I've seen that library @Erel :p
I've previously posted code snippets on here using your SSD1306 library. For starters it's missing some methods like 'display.drawProgressBar', and in any case it does not connected to this particular ESP32 with built in OLED display.

Look at the difference yourself.
B4X:
Initialising using C:
     SSD1306 display(0x3c, 5, 4);    'Built-in OLED display
B4X:
Initialising using B4R:
     SSD.InitializeHSPI(9, 8, 10)    '7 pin OLED display
     or
     SSD.InitializeI2C(4, 0x3c)      '4 pin OLED display

https://www.b4x.com/android/forum/threads/radafruitssd1306-oled-displays.68906/#content

https://www.b4x.com/android/forum/t...-in-oled-display-progress-bar-inline-c.81391/
 
Top