From 2d27cb052d499fa23454239c567670f88bb9c98c Mon Sep 17 00:00:00 2001 From: peteGSX Date: Fri, 9 Dec 2022 14:41:48 +1000 Subject: [PATCH] Add registers --- IO_EXIOExpander.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/IO_EXIOExpander.h b/IO_EXIOExpander.h index c979176..67cbb3d 100644 --- a/IO_EXIOExpander.h +++ b/IO_EXIOExpander.h @@ -74,6 +74,15 @@ private: } uint8_t _i2cAddress; + + enum { + REG_EXIOINIT = 0x00, // Flag to initialise setup procedure + REG_EXIODPIN = 0x01, // Flag we're sending digital pin assignments + REG_EXIOAPIN = 0x02, // Flag we're sending analogue pin assignments + REG_EXIORDY = 0x03, // Flag we have completed setup procedure, also for EX-IO to ACK setup + REG_EXIODDIR = 0x04, // Flag we're sending digital pin direction configuration + REG_EXIODPUP = 0x05, // Flag we're sending digital pin pullup configuration + }; }; #endif \ No newline at end of file