I’m still new to the Arduino world so I’m hoping im making a silly mistake and my problem can be easily resolved.
Basically i’m in the process of writing up test code for different parts of my project. At the moment i’m trying to get the interrupt working on the PCF8574 i/o expander. I can get the program to recognise a change of state and it will go into the ISR but if i try and read or write to the PCF8574 during this routine the program will hang.
here is the code i’m working with atm
#define expander B0100000
#define expander2 B0100111
attachInterrupt(0, flash, CHANGE);
void expanderWrite(byte _data )
_data = Wire.receive();
the output was comes out like this
it won’t go any further and i don’t understand why. Any help would be greatly appreciated.