Hi,
I'm fairly new to Arduino, I did a few basic projects. Now I'm trying to learn more about the PCF8574 I/O bus expander. I was able to connect 8 LED's and make them blink one at the time without to much trouble. But now I'm trying to read a button push and it's giving me a hard time for the past 2 days.
This is the way I've set up my project:
and this is the code I'm using:
#define DEVICE_ADDRESS 56
#include <Wire.h>
byte x=0;
void setup()
{
Wire.begin();
Serial.begin(9600);
}
void loop()
{
x = Wire.read();
Serial.println(x);
}
If somebody could take a look and tell me what I'm doing wrong, that would be great!