-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 HW I2C on alternative GPIO SDA 23 and SCL 19 rather than standard 21/22 #385
Comments
this is implemented in the latest release 2.19.7 The new release will appear in the next 2 days in the Arduino IDE. |
Note that the correct syntax will be "rotation, [reset [, clock, data]]". So you must provide something for the reset pin: |
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=/ U8X8_PIN_NONE, / clock=/ 19, / data=*/ 23); is there a new config or so ? |
Which environment do you use? Arduino IDE? |
yes 1.8.3 |
hmmm there also should be no need to define #define U8X8_USE_PINS |
now it is working, I don't know why |
Maybe it took some time until the new u8g2 was recognized :-p |
Hi
I want to use an OLED SSD1306 on SDA 23 and SCL 19 rather than standard 21/22
But I can't use HW
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* clock=*/ 19, /* data=*/ 23); // (rotation, [reset [, clock, data]])
only software emulation I2C work, but of course it is slow comparing to HW I2C
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
but I know than ESP32 can put the I2C SCL SDA on any GPIO
Any solution to force the I2C to these pins ?
Thanks
Here is the working code with SW I2C
The text was updated successfully, but these errors were encountered: