fix: detach the charger's I2C pins from the SPI link's SERCOM
This commit is contained in:
parent
5c69d826a2
commit
4c8371bb44
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue