adafruit / Adafruit_SH110x

Arduino library for SH110x based monochrome OLEDs
Other
63 stars 29 forks source link

Setup different I2C Pins #24

Open giddel opened 2 weeks ago

giddel commented 2 weeks ago

Hi, I want to use the lib on a ESP32. But the default I2C Pins are already in use. Is there a possibility to set different pins for SDA / SCL in in using this library?

Thanks for help!

giddel commented 2 weeks ago
$ unzip fix.zip 
Archive:  fix.zip
   skipping: libssp-0.dll            unsupported compression method 99
   skipping: x86_64-w64-ranlib.exe   unsupported compression method 99

... and I'm using Linux ...

giddel commented 2 weeks ago

Got it. I can provide the pins at init via: //U8G2_SH1106_128X64_NONAME_F_HW_I2C(rotation, [reset [, clock, data]]) [full framebuffer, size = 1024 bytes]

/close