RC522 RFID library adapted for Spark