From f323012d879181580bec0cff312819d678ed2e56 Mon Sep 17 00:00:00 2001 From: meri Date: Wed, 30 May 2007 22:03:53 +0000 Subject: python support by Kushal Das git-svn-id: https://svn.gnumonks.org/trunk/librfid@1997 e0336214-984f-0b4b-a45f-81c69e1f0ede --- python/test.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 python/test.py (limited to 'python/test.py') 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() -- cgit v1.2.3