I am trying to use an i2c SH1106 OLED display with an arduiuno nano and u8g2 lib. When I open the hello world sketch, there is no constructor with SH1106 and i2c mode. I tried figuring out how to make the correct constructor, but they all seem to ask for pin like reset and clock which I shouldn't need for i2c. https://github.com/olikraus/u8g2/wiki/u8g2setupcpp Anyone understand how to get this working? Thanks!
As a clock pin, you have to provide the pin number to which the I2C clock line is connected. For the reset argument, you can use U8X8_PIN_NONE if there is no reset connected.