Skip to content

Commit

Permalink
More TCA8418
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantoine committed Feb 24, 2024
1 parent 2082051 commit 0cb1755
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IO_TCA8418.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class TCA8418 : public GPIOBase<uint64_t> {
public:
static void create(VPIN vpin, uint8_t nPins, I2CAddress i2cAddress, int interruptPin=-1) {
if (checkNoOverlap(vpin, nPins, i2cAddress))
// temporarily use the simple 18-pin GPIO mode - we'll switch to 8x8 matrix once this works
new TCA8418(vpin, (nPins = (nPins > 18) ? 18 : nPins), i2cAddress, interruptPin);
}

Expand Down Expand Up @@ -118,6 +119,7 @@ class TCA8418 : public GPIOBase<uint64_t> {
}

void _setupDevice() override {
DIAG(F("TCA8418 setupDevice() called"));
// IOCON is set MIRROR=1, ODR=1 (open drain shared interrupt pin)
// I2CManager.write(_I2CAddress, 2, REG_IOCON, 0x44);
_writePortModes();
Expand Down

0 comments on commit 0cb1755

Please sign in to comment.