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

Add support to 'listen' for tags #37

Closed dunkmann00 closed 4 years ago

dunkmann00 commented 4 years ago

This adds support to break the read_passive_target function up into two parts if desired. First tell the PN532 to listen for tags, and then explicitly ask to read the UID from the tag. This can be useful when trying to simultaneously scan tags and run timing sensitive code, like updating neopixels, and don't want to wait for the timeout delay of read_passive_target.

This addresses #36.

FoamyGuy commented 4 years ago

I will test out the code from this PR this week.

ladyada commented 4 years ago

@FoamyGuy wow thanks!

ladyada commented 4 years ago

nice!

dunkmann00 commented 4 years ago

Thanks @FoamyGuy & @ladyada!

FoamyGuy commented 4 years ago

You are welcome. And thank you as well @dunkmann00, this functionality is a great addition that allows the PN532 to be more easily used in complex / interesting projects. I appreciate you working on this and adding it to the Library.