blob: 4180542d092049473bd06487d6e32e8b1a2b8c3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
import pyrfid
res = openpcd.open()
if res == 1:
print "No device found"
else:
print "We found a device :)"
while 1:
res = openpcd.scan()
if res == 3:
print "The id of the card is %s" %(openpcd.get_id())
openpcd.close()
|