ElectronicCats / ElectronicCats-PN7150

Arduino library for I2C access to the PN7150 RFID/Near Field Communication chip
MIT License
33 stars 15 forks source link

I2C in ESP32 #16

Closed hkarthik97 closed 3 years ago

hkarthik97 commented 4 years ago

I tried to connect ESP32 and PN7150 plug and play device. I connected in I2C. The serial monitor shows Setup Ok. But when I scan the card nothing happens. Which microcontroller did you use?

sabas1080 commented 4 years ago

Hi @hkarthik97

This library is not ready to work in ESP32 yet, apparently there is not enough buffer for the responses of the PN7150, but welcome your pullrequest, check wire library

https://github.com/ElectronicCats/ElectronicCats-PN7150/blob/master/src/Electroniccats_PN7150.h#L23-L32

this library has been tested on SAMD21, but should work on SMT32, Teensy and similary boards

sabas1080 commented 3 years ago

Hi @hkarthik97 this library work for you in ESP32?

hkarthik97 commented 3 years ago

Yes it works for me in esp32