RFID RC522 Raspberry PI 2 Windows IOT

前端 未结 3 1284
猫巷女王i
猫巷女王i 2020-11-29 07:38

I\'m looking for a way to use the RFID \"RC522\" on a Raspberry Pi 2.0 on Windows IOT.

It is of course not offical compatible...

The offical one (OM5577 demo

3条回答
  •  春和景丽
    2020-11-29 08:35

    Addition: If you want to see the UID as a string representing the hex chars, you can use the following inside TagIsPresent part:

    var uid = mfrc.ReadUid();
    string txt_Result = "";
    foreach (byte byt in uid.FullUid)
    {
        txt_Result = txt_Result + byt.ToString("x2");
    }
    mfrc.HaltTag();
    

提交回复
热议问题