AnsweredAssumed Answered

Why am I always getting 0xFF from ADP1046a?

Question asked by victagayun on Feb 28, 2017
Latest reply on Mar 8, 2017 by victagayun

for (int cntr = 0; cntr <= 0x80 ; cntr++) {
Wire.beginTransmission(0x50);
Wire.write(byte(cntr));
Wire.endTransmission();
Wire.requestFrom(0x50, 1);
Serial.print(cntr,HEX);
Serial.print(" ");
while (Wire.available()) { // slave may send less than requested
char c = Wire.read(); // receive a byte as character
Serial.println(c,HEX); // print the character
}
delay(500);
}

 

I would always get 0xFF for every register read... I am using Arduino esp8266...

Outcomes