-
Notifications
You must be signed in to change notification settings - Fork 118
Description
No Issue FYI
Thanks a lot // DANKE STEFAN! @wendlers !!! - that saved me a whole bunch of time...
***GREAT NEWS *** ESP32 (S) also works 😃
using upython 1.9.3 -> with some, real small, code extensions: that was a no brainer ... brain work has been done by Stefan.
SPI used ("HSPI") - remark: 1st, standard esp32 SPI didn't work, VSPI might work too, just try map the VSPI pins...
define HSPI pin mappings + RST aka reset module
#HSPI BUS #NodeMCU ESP32 WROOM printed on Pin@board
ESP32_HSPI_CLOCK = 14 #P14 (HSPICLK in ESP32 Docs)
ESP32_HSPI_SLAVE_SELECT = 15 #P15 (HSPICS0 in ESP32 Docs)
ESP32_HSPI_MISO = 12 #P12 (HSPIQ[uery] in ESP32 Docs)
ESP32_HSPI_MOSI = 13 #P13 (HSPID[ata] in ESP32 Docs)
ESP32_MFRC522_RST = 3 #SD3, as plain GPIO - can be any unused GPIO
and create in reader/writer:
elif board == 'esp32':
#hspi sck, mosi, miso, rst, cs
rdr = mfrc522.MFRC522(ESP32_HSPI_CLOCK, ESP32_HSPI_MOSI, ESP32_HSPI_MISO, ESP32_MFRC522_RST, ESP32_HSPI_SLAVE_SELECT)
further more allow esp32 same as esp8266 in mrfc522.py:
elif board == 'esp8266' or board == 'esp32':
that's all. Tags shipped with the MFRC522 are recognized fully, other china's set reads at least UID, but not the 0x08-address ("Auth error") - nevertheless for a good/bad recognition this is really fine for me.