2 THIS IS WORK IN PROGREESS, very much not finished.
4 This library utilises other libraries under the hood, but can be used as a generic reader for 13.56MHz tags.
7 local reader14443A
= require('read14a')
8 local reader14443B
= require('read14b')
9 local reader15693
= require('read15')
12 -- This method library can be set waits or a 13.56 MHz tag, and when one is found, returns info about
15 -- @return if successful: an table containing card info
16 -- @return if unsuccessful : nil, error
17 local function waitForTag()
18 print("Waiting for card... press <Enter> to quit")
19 local readers
= {reader14443A
, reader14443B
, reader15693
}
21 while not core
.kbd_enter_pressed() do
24 print("Reading with ",i
)
26 if res
then return res
end
28 -- err means that there was no response from card
30 return nil, "Aborted by user"
34 waitForTag
= waitForTag
,