pxt-NFCI2C

PN532 I2C

Micro:bit NFC Sensor expansion board.

Table of Contents

URL

project URL: https://github.com/DFRobot/pxt-NFCI2C

Summary

NFC Sensor expansion board provides some Micro:bit blocks for reading and interpreting PN532 NFC RFID Module over I2C. These blocks make it easy to operate or acquiring imformation from the card via NFC sensors.Near field communication (NFC) is a set of standards for smart phones and similar devices to establish radio communicationwith each other by touching them together or bringing them into close proximity, usually no more than a few centimeter.

Blocks

1.checkCard

image
Whether a card is detected by NFC.

2.checkUid

image
Whether UID data of card is detected.

3.getUid

image
Read NFC sensor UID data.

4.readDataBlock

image
Read all data on NFC data block.

5.readDataNByte

image
Read NFC data specifying N bytes.

6.readDataByte

image
Read NFC data specifying one byte.

7.writeData

image
Write data to the first few bytes of the NFC data block

8.blockList

image

9.nfcDataList

image

Example

get code: https://github.com/DFRobot/pxt-NFCI2C/blob/master/test.ts

License

MIT