Hi,
My pcf doesn't tel me the value on the 1st chanel. Can u tell me why ???
(A0=1, A2=0, A3=0)
Thanks a lot !
PT
#include <Wire.h>
#define PCF8591_1 B1001001 // #define PCF8591_2 B1001011
int _data;
void setup()
{
Wire.begin();
Serial.begin(9600);
}
void loop() {
Wire.beginTransmission(PCF8591_1);
Wire.send(B0000000);
Wire.endTransmission();
Wire.requestFrom(PCF8591_1, 2);
while (Wire.available()) {
_data = Wire.receive();
Serial.print("Ana Read: ");
Serial.print(_data, BIN);
}
Serial.println("\tc");
delay(800);
}