Code: Select all
wire.endTransmission();
Code: Select all
expanderWrite(0b10000011);
At first I thought that the wire.endTransmission() was the problem, but then I noticed that function expanderWrite2 is called at line 240, and that went just fine. Or are expanderWrite and expanderWrite2 communicating with different IC's?
As far as I understand, the expanderWrite function is communicating with MD02 IC6?
But then how come MD02 is involved in initializing the buttons at all? Shouldn't the buttons be connected to MD01 K5 that is connected directly to IO pins on the Arduino?
Feels like I've misunderstood something...
EDIT:
I just performed a search in Eclipse, and line 256 seems to be the only line calling the function expanderWrite. And the only line I can find calling for expanderRead is
Code: Select all
buttonCheck_V1(expanderRead());