best of I2CSPI-refactor

* cherry-picking my additions to pinmanger
* toDo: replace Wire.begin() with pinManager.joinWire()
This commit is contained in:
Frank
2023-01-08 19:09:30 +01:00
parent a10f1b20ac
commit b29ff1186b
5 changed files with 97 additions and 4 deletions

View File

@@ -309,7 +309,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
#ifdef ESP32
Wire.setPins(i2c_sda, i2c_scl); // this will fail if Wire is initilised (Wire.begin() called prior)
#endif
Wire.begin();
// Wire.begin(); // WLEDMM moved into pinManager
} else {
Serial.printf("pinmgr not success for global i2c %d %d\n", i2c_sda, i2c_scl);
}