From 0cb175544e4771415c22d6bdc5ed0c331ce76f95 Mon Sep 17 00:00:00 2001 From: pmantoine Date: Sat, 24 Feb 2024 17:29:10 +0800 Subject: [PATCH] More TCA8418 --- IO_TCA8418.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IO_TCA8418.h b/IO_TCA8418.h index 4ca143e..25c5ec3 100644 --- a/IO_TCA8418.h +++ b/IO_TCA8418.h @@ -40,6 +40,7 @@ class TCA8418 : public GPIOBase { 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); } @@ -118,6 +119,7 @@ private: } 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();