I2C on TAB5
-
I need to connect SDC40 from M5Stack to the TAB5. Wich port is the one to use to connect the SCD40.
Is there an example how to use the I2C with the TAB5
-
As no one Answered. I have a MS5637 barometric sensor on the Tab5 through the Port.a.
The configuration that i used to communicate with it was these:
M5.Ex_I2C.begin(); // Initialize I2C for MS5637 with SDA=GPIO53, SCL=GPIO54 Wire.begin(M5.Ex_I2C.getSDA(), M5.Ex_I2C.getSCL()); // Reconfigure default Wire to use M5.Ex_I2C pins barometricSensor.begin(Wire);
I'm not even sure if everything is needed but it works.
-
I2C on Tab5 as example used with ENV3 sensor
i2c0 = I2C(0, scl=Pin(54), sda=Pin(53), freq=100000)
env3 = ENVUnit(i2c=i2c0, type=3)