Help with ESP8266-01, NFC Module V3, i2c
Posted: Wed May 25, 2016 8:31 am
Hi guys I haven't played with the wire library before and am not able to find any relevant docs of using ESP8266-01, NFC Module V3, i2c. I have the following snippets but am not receiving anything in serial when I scan a chip. I have the SDA connected to pin 0 of the ESP and scl to pin 2 then the following snippets, connecting to wifi is fine it is just the receiving data from the module that I am having issue with any advice anyone ? TIA
and then in the loop:
Have also tried the following in loop:
Any suggestions please.
Code: Select all
void setup() {
Serial.begin(115200);
delay(10);
Wire.begin(0,2);
Serial.println();
Serial.println("System Initiating...");
// REST OF CODE
}
and then in the loop:
Code: Select all
Wire.requestFrom(2, 2);
Serial.print( Wire.read());
Have also tried the following in loop:
Code: Select all
Wire.requestFrom(2, 2);
while(Wire.available()){
int c = Wire.read();
Serial.print(c);
}
Any suggestions please.