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
pin remapping for second I2C interface #779
Comments
ahm.... ok... got the point... |
Yes, that's right. Might be a little confusing explanation from my side. |
this has to be postponed... |
@tobiea27 Hi! I'm working on no-arduino port to ESP32. Development is paused now until I'll get new SPI display, but C side is functional. It does allow you to select pins. Hope that it will help you later. |
This is already open for a long time. Unfortunately effort is huge for this topic. Is it still required? |
I apologies for my late response. In my project I'm using the workaround mentioned above, which works fine for me. |
Ok, thanks for the feedback. |
closing this, because "on hold" topics should be closed. |
Hi!
This is my first GitHub post. I hope I'm doing it right ;)
So, I want to use the second I2C HW Interface of the ESP32 with a SH1106 driver. This only works for me with small modifications in this library.
With the U8G2_SH1106_128X64_NONAME_F_2ND_HW_I2C Constructor you can't remap the clock and data pin. This is a problem, because as far as I can see the Arduino Wire library hasn't default pins for WIRE1. https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire/src/Wire.cpp
With the U8G2_SH1106_128X64_NONAME_F_HW_I2C Constructor you can do that. So I modified it, to work with the second I2C interface, too.
This problem seems to exist in every Constructor with 2ND_HW_I2C.
I hope the clock and data pin remapping could be implemented for all 2ND_HW_I2C Constructors.
To make it work I have to modify U8g2lib.h and U8x8lib.cpp:
U8g2lib.h
original
modified
U8x8lib.cpp
original
modified
Thanks for developing this awsome library!
The text was updated successfully, but these errors were encountered: