Browse Source

Remove i2cProbe check - expander is soldered on board, matches Meshtastic

pull/1875/head
Wouter Bijen 3 months ago
parent
commit
10b120486f
  1. 7
      variants/m5stack_unit_c6l/UnitC6LBoard.h

7
variants/m5stack_unit_c6l/UnitC6LBoard.h

@ -48,18 +48,11 @@ private:
return Wire.read();
}
bool i2cProbe() {
Wire.beginTransmission(PI4IO_ADDR);
return Wire.endTransmission() == 0;
}
void initGPIOExpander() {
// Matches Meshtastic's c6l_init() in variant.cpp
// Uses Wire (already on SDA=10, SCL=8 from ESP32Board::begin)
if (!i2cProbe()) {
return;
}
// Reset expander
i2cWrite(PI4IO_REG_CHIP_RESET, 0xFF);

Loading…
Cancel
Save