projects
/
librfid
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
python support by Kushal Das
[librfid]
/
python
/
test.py
1
#!/usr/bin/env python
2
3
import pyrfid
4
5
res = openpcd.open()
6
if res == 1:
7
print "No device found"
8
else:
9
print "We found a device :)"
10
while 1:
11
res = openpcd.scan()
12
if res == 3:
13
print "The id of the card is %s" %(openpcd.get_id())
14
openpcd.close()