1.0.5 • Published 8 years ago

MFRC522-node v1.0.5

Weekly downloads
-
License
GPL
Repository
-
Last release
8 years ago

MFRC522-node

MFRC522-python を node.js から利用してUIDを取得するためのモジュール

Require

SPI-Py

Pins

Raspberry Pi と RFID-RC522 の接続

NamePin #Pin name
SDA24GPIO8
SCK23GPIO11
MOSI19GPIO10
MISO21GPIO9
IRQNoneNone
GNDAnyAny Ground
RST22GPIO25
3.3V13V3

Install

npm install MFRC522-node

Sample

var mfrc522 = require("MFRC522-node");

var Callback = function(){
  //開始
  this.onStart = function(){
    console.log('onStart');
  };

  //UIDを取得時
  this.onUid = function(uid){
    console.log('onUid');
    console.log(uid);
  };

  this.onExit = function(){
    console.log('onExit');
  };
};
mfrc522.start( new Callback() );
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago