diff options
author | meri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-05-30 22:03:53 +0000 |
---|---|---|
committer | meri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-05-30 22:03:53 +0000 |
commit | f323012d879181580bec0cff312819d678ed2e56 (patch) | |
tree | 819d0bf93be5ff83b50f9d63c2f730c0b88b21aa /python/test.py | |
parent | a91cd3d9e2a4e985c63850679e8242c6d08fed08 (diff) |
python support by Kushal Das
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1997 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'python/test.py')
-rw-r--r-- | python/test.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/python/test.py b/python/test.py new file mode 100644 index 0000000..4180542 --- /dev/null +++ b/python/test.py @@ -0,0 +1,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() |