Thanks all i found answer on this post.. https://github.com/espruino/EspruinoDocs/issues/258
Solutions:
var spiSoftware, chipSelect, rfid, rfidTest; function onInit() { spiSoftware = new SPI(); spiSoftware.setup({ sck: D14, miso: D12, mosi: D13 }); chipSelect = D15; rfid = require('MFRC522').connect(spiSoftware, chipSelect); setInterval(rfidText, 2000); } function rfidTest(){ console.log("trying to find card"); return rfid.findCards(function(card){ return console.log("Found " + card); }); };
@Aleksandrs started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks all i found answer on this post.. https://github.com/espruino/EspruinoDocs/issues/258
Solutions: