adafruit / Adafruit-PN532

Arduino library for SPI and I2C access to the PN532 RFID/Near Field Communication chip
Other
422 stars 266 forks source link

ESP32 + SPI mode in a thread = nightmare #103

Open YordanYanakiev opened 2 years ago

YordanYanakiev commented 2 years ago

This library is NOT thread safe, not it is aligned to be used in Threads ( ESP32 ). ( for instance - using "delay" is a big no-no ).

ESP32 + SPI mode = complete nightmare, which eventually can work sometime - completely randomly.

Please review the library to work properly for ESP32 multithreading