kike-canaries / canairio_sensorlib

Particle sensor manager for multiple sensors: Honeywell, Plantower, Panasonic, Sensirion, etc. This is sensors layer of CanAirIO project too.
https://canair.io/docs/sensorlib.html
GNU General Public License v3.0
37 stars 12 forks source link

M5StickCPlus HAT is not working #178

Open hpsaturn opened 11 months ago

hpsaturn commented 11 months ago

Overview

With the last library versions and last Expressif Framework ^4.4.0 we had message of Wire1 already was initialized and it not permit flush and reconfigure with new pins.

Details

Only happen on the hat port with the current preconfigured pins:

// I2C pins for M5COREINK and M5STICKCPLUS
#define HAT_I2C_SDA 0
#define HAT_I2C_SCL 26
#define EXT_I2C_SDA 32
#define EXT_I2C_SCL 33

These issue happens too in M5CoreInk

Log output

09:53:55.496 > [557949][W][Wire.cpp:204] begin(): Bus already started in Master Mode.
09:53:55.496 > [557950][W][Wire.cpp:204] begin(): Bus already started in Master Mode.