fix: detach the charger's I2C pins from the SPI link's SERCOM

This commit is contained in:
randogoth 2026-10-25 17:48:20 +02:00
parent 5c69d826a2
commit 4c8371bb44

View file

@ -32,6 +32,12 @@ bool StrixFPGA::begin() {
if (!vidor.begin(true)) return false;
delay(100); // configuration and PLL lock
// The core configures the battery charger chip over I2C (SERCOM0 on D11/D12) at boot and leaves
// those pins assigned to SERCOM0. Detach them, or the SPI link's signals would also appear on
// the charger's I2C bus.
pinMode(PIN_WIRE_SDA, INPUT);
pinMode(PIN_WIRE_SCL, INPUT);
pinMode(STRIX_SS, OUTPUT);
digitalWrite(STRIX_SS, HIGH);
strixSpi.begin();