Example #1
0
 def read(self):
     num = ti.tiki_seek()
     if num == 0:
         pass
     elif num == 1:
        	idstring = self.parse_id('%x' % ti.tiki_getID1())
        	self.go_amarok(idstring.lower())
     elif num == 2:
         self.parse_id2('%x' % ti.tiki_getID1(), '%x' % ti.tiki_getID2())
     else:
         print "Nope"
Example #2
0
import pytiki as ti
ti.tiki_init()
ti.tiki_config(5000,0)

for i in range(100):
	num = ti.tiki_seek()
	if num == 0:
		print "No tag found"
	elif num == 1:
        	print "%x"%ti.tiki_getID1()
	elif num == 2:
		print "%x"%ti.tiki_getID1()
		print 
		print "%x"%ti.tiki_getID2()
	else:
		print "Nope"

ti.tiki_close()

Example #3
0
File: test.py Project: nesl/tikitag
import pytiki as ti
ti.tiki_init()
ti.tiki_config(5000, 0)

for i in range(100):
    num = ti.tiki_seek()
    if num == 0:
        print "No tag found"
    elif num == 1:
        print "%x" % ti.tiki_getID1()
    elif num == 2:
        print "%x" % ti.tiki_getID1()
        print
        print "%x" % ti.tiki_getID2()
    else:
        print "Nope"

ti.tiki_close()
Example #4
0
import pytiki as ti
ti.tiki_init()
ti.tiki_config(5000,0)
num = ti.tiki_seek()
if num == 1:
        print ti.tiki_getID1()
ti.tiki_close()