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

@@ -543,7 +543,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
#ifdef ESP32
Wire.setPins(i2c_sda, i2c_scl); // this will fail if Wire is initilised (Wire.begin() called)
#endif
Wire.begin();
// Wire.begin(); // WLEDMM moved into pinManager
} else {
// there is no Wire.end()
DEBUG_PRINTLN(F("Could not allocate I2C pins."));