Waveshare 1.3" OLED with SH1106 and u8g2 - how to use I2C?

hi!
i felt a little desperate last nite; i have a waveshare 1.3" (B) OLED (https://www.waveshare.com/wiki/1.3inch_OLED_(B)) configured by default for driving it with 4 wire SPI - if i select 4W SPI and connect it via the u8g2 lib according to the pinout given in the example code ("Hello World) to an Arduino Uno it works fine.

my problem - i want to drive it via an adafruit feather ES32; I can drive another no name SH1106 oled via I2C with the feather, but i cannot drive the waveshare via 4W SPI with the feather (mainly as i cannot tranlate the pinout from the uno, i assume).

for using the waveshare with I2C, i have to switch a jumper (BS1) - do i have to do something with the other inputs? however, I2C does not work with this OLED either the Uno or the feather...

had to drink a beer and go to bed after a few hours :smiley:

does anyone have a hint for me?
yours
wolfi

bump - so am i the only one trying this combination :slight_smile: ?
yours
wolfi

Well, there is too less information. Including myself I am somethimes tired of asking for more information. But ok, here they are:

Which u8g2 constructor did you use?
Can you send a picture of your setup?

mainly as i cannot tranlate the pinout from the uno, i assume

Correct, but usually they are nicly depict on the board or the header. So did you use these numbers?

U8g2 offers SW SPI. Did you test this? SW 4W SPI is more flexible and you have to provide all the pins.

In fact it is a little bit difficult to figure out the Hardware SPI pins, so maybe start with SW SPI. This leads to another question: Did you made a proper research on the HW SPI Pins of the feather board. Well, it took me two clicks to come here: Pinouts | Adafruit HUZZAH32 - ESP32 Feather | Adafruit Learning System. But due to the limited information you gave, I do not know whether you have connected the clock and data (MO) pin correctly for HW SPI.

Oliver