adafruit / Adafruit_CircuitPython_PN532

CircuitPython driver for the PN532 NFC/RFID Breakout and PN532 NFC/RFID Shield
MIT License
91 stars 47 forks source link

I2C delays slowing down code #39

Closed dunkmann00 closed 3 years ago

dunkmann00 commented 4 years ago

I noticed while trying to read tags using I2C that it seemed to be taking longer than it used to. After a fair bit of testing trying to track it down, I think it has to do with some of the delays that are present in the library.

Specifically here (Line 74):

https://github.com/adafruit/Adafruit_CircuitPython_PN532/blob/62ddaaf6e13f3c4e2525962ac48acb58259aac9a/adafruit_pn532/i2c.py#L71-L74

and while this isn't as much of a problem, here as well (Line 105):

https://github.com/adafruit/Adafruit_CircuitPython_PN532/blob/62ddaaf6e13f3c4e2525962ac48acb58259aac9a/adafruit_pn532/i2c.py#L102-L105

dunkmann00 commented 3 years ago

Closed by #41