You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short example of reading RFID/NFC cards by RC522/MFRC522 module and display it on OLED display (4-wire SPI).
Everything is wired directly with breadboard wires to the Espruino Pico board. No external power supply needed.
Just Plugin to USB Port or power by USB battery pack.
varspi=newSPI();spi.setup({mosi: B15,sck:B13});// OLED driver and graphic libraryvarg=require("SSD1306").connectSPI(spi,A6,B14,function(){// display is connected...// do something });
Initialize RFID module
We use the SPI1 port of the Espruino Pico board.
// initial SPI1 for MRFC522 NFC moduleSPI1.setup({sck:B3,miso:B4,mosi:B5});varnfc=require("MFRC522").connect(SPI1,B1/*CS*/);