wendlers / micropython-mfrc522

(Micro)Python class to access the MFRC522 RFID reader
MIT License
160 stars 113 forks source link

ESP8266 Adafruit Feather Huzzah #10

Open ghost opened 6 years ago

ghost commented 6 years ago

I just installed the libraries and called the do_read function from screen/serial-REPL. I'm not getting any readings (the reader works fine with my Arduino Mega). I would assume this has to do with the pinout, I'm really not sure how the pins map from the vanilla ESP8266 to the Adafruit Feather Huzzah. Here's the pinout I've been referencing: https://cdn-learn.adafruit.com/assets/assets/000/046/249/original/adafruit_products_Huzzah_ESP8266_Pinout_v1.2-1.png?1504885873. Any information you can offer would be greatly appreciated!

phikubo commented 5 years ago

If you are using the esp8266 nodemcu, you can pinout like(remember that those numbers corresponds to the Gpio, so you can shearch it online): rc522: sck, mosi, miso, rst, cs Gpios: 14, 13,12,5, 15 And then, you should modify the read.py and write.py rdr = mfrc522.MFRC522(14, 13,12,5, 15)