1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-29 10:23:45 +02:00

I2C overlap checks (working but messy)

Needs disgnostic clean and promotion of i2c address to IODevice.
This commit is contained in:
Asbelos
2022-06-14 17:21:11 +01:00
parent 10a0cfcccb
commit 08eaa8ddb7
9 changed files with 50 additions and 17 deletions

View File

@@ -39,7 +39,7 @@ static void writeRegister(byte address, byte reg, byte value);
// Create device driver instance.
void PCA9685::create(VPIN firstVpin, int nPins, uint8_t I2CAddress) {
if (checkNoOverlap(firstVpin, nPins)) new PCA9685(firstVpin, nPins, I2CAddress);
if (checkNoOverlap(firstVpin, nPins,I2CAddress)) new PCA9685(firstVpin, nPins, I2CAddress);
}
// Configure a port on the PCA9685.