{"action":"created","issue":{"url":"https://api.github.com/repos/espruino/EspruinoDocs/issues/258","repository_url":"https://api.github.com/repos/espruino/EspruinoDocs","labels_url":"https://api.github.com/repos/espruino/EspruinoDocs/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/espruino/EspruinoDocs/issues/258/comments","events_url":"https://api.github.com/repos/espruino/EspruinoDocs/issues/258/events","html_url":"https://github.com/espruino/EspruinoDocs/issues/258","id":159565302,"number":258,"title":"MFRC522 Error 12 on ESP8266","user":{"login":"brod","id":4452722,"avatar_url":"https://avatars.githubusercontent.com/u/4452722?v=3","gravatar_id":"","url":"https://api.github.com/users/brod","html_url":"https://github.com/brod","followers_url":"https://api.github.com/users/brod/followers","following_url":"https://api.github.com/users/brod/following{/other_user}","gists_url":"https://api.github.com/users/brod/gists{/gist_id}","starred_url":"https://api.github.com/users/brod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brod/subscriptions","organizations_url":"https://api.github.com/users/brod/orgs","repos_url":"https://api.github.com/users/brod/repos","events_url":"https://api.github.com/users/brod/events{/privacy}","received_events_url":"https://api.github.com/users/brod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-10T06:09:28Z","updated_at":"2016-06-17T08:57:56Z","closed_at":null,"body":"_Error_\r\n```\r\nUncaught Error: MRFC522 Request Error 12\r\n at line 1 col 189\r\n...(\"MRFC522 Request Error \"+a);a=this.r(20);return this.ra(18,...\r\n                              ^\r\nin function \"req\" called from line 1 col 34\r\nthis.w(26,7);return 0<this.req(38).length\r\n                                 ^\r\nin function \"isNewCard\" called from line 1 col 16\r\nthis.isNewCard()&&a(this.getCardSerial())\r\n               ^\r\nin function \"findCards\" called from line 4 col 2\r\n});\r\n ^\r\n```\r\n_Code_\r\n```\r\nSPI1.setup({ sck:D14, miso:D12, mosi:D13 });\r\nvar nfc = require(\"MFRC522\").connect(SPI1, D15);\r\nnfc.findCards(function(card) {\r\n  print(\"Found card \"+card);\r\n  card = JSON.stringify(card);\r\n});\r\n```\r\n\r\n_Connection (NodeMCU)_\r\n\r\n```\r\nRC522       NodeMCU,  ESP8266,  Espruino\r\nCS     ->   D5,       GPIO15,   D15\r\nSDA    ->   D8,       GPIO14,   D14\r\nMISO   ->   D6,       GPIO12,   D12\r\nMOSI   ->   D7,       GPIO13,   D13\r\n```\r\n\r\nUnsure what `Error 12` is and why it's appearing, any help appreciated."},"comment":{"url":"https://api.github.com/repos/espruino/EspruinoDocs/issues/comments/226717255","html_url":"https://github.com/espruino/EspruinoDocs/issues/258#issuecomment-226717255","issue_url":"https://api.github.com/repos/espruino/EspruinoDocs/issues/258","id":226717255,"user":{"login":"ceremcem","id":6639874,"avatar_url":"https://avatars.githubusercontent.com/u/6639874?v=3","gravatar_id":"","url":"https://api.github.com/users/ceremcem","html_url":"https://github.com/ceremcem","followers_url":"https://api.github.com/users/ceremcem/followers","following_url":"https://api.github.com/users/ceremcem/following{/other_user}","gists_url":"https://api.github.com/users/ceremcem/gists{/gist_id}","starred_url":"https://api.github.com/users/ceremcem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceremcem/subscriptions","organizations_url":"https://api.github.com/users/ceremcem/orgs","repos_url":"https://api.github.com/users/ceremcem/repos","events_url":"https://api.github.com/users/ceremcem/events{/privacy}","received_events_url":"https://api.github.com/users/ceremcem/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T08:57:56Z","updated_at":"2016-06-17T08:57:56Z","body":"nope, we haven't. you mean we should try to use different SPI pin group on Discovery?"}}
{"actor":{"display_login":"ceremcem"}}