Replies: 1 comment 1 reply
-
Use HW constructor if you want to have few different devices on same pins. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I have setup a project on a ESP32 and a SSD1306 LCD to display some logs instead of using the Serial.
Everything run fine.
Then I have a function adding lines to LCDlog, working perfect.
So I have added a second device on the I2C bus which is an ADS1115 to monitor a battery.
This module works fine also on its own.
But as soon as the ADS.begin() starts after the u8g2 part, the SSD1306 freeze and do not update anymore?
I ran a little ino code that check the devices connect to the I2C bus and it detects both devices, so it looks OK.
Running the same code including u8g2 and ADS on an Arduino MEGA works but not an ESP32.
I have tested several ADS libraries and the LCD freeze at the same place.
When using the Adafruit_GFX.h and the ADS1X15.h on ESP32 everything works, but I need to use u8g2 as I prefer.
Is there some restriction with the u8g2 running on ESP32 and another devices on the I2C bus?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions