I've been working in raw I2C write and M5Stack have told me that there is an issue with digital read functions with the EXTIO2 and the Stamp EXTI/O but won't tell me where the error is?
Be careful when reading and writing to the EXT2 StampEXT as it is very easy to corrupt the I2C address register.