Exemplo n.º 1
0
def main():
    #init
    for i, dev in enumerate(findDevices()):
        board = PeriBoard(dev)

    if rouleteGame(board, 1):
        print 'True'
    else:
        print 'False'
Exemplo n.º 2
0
	def __init__(self):
		
		devs = findDevices()

		if len(devs) == 0:
		    print "*** No MCU board found."
		    exit(1)
		
		self.board = PeriBoard(devs[0])
		self.continueZeroCounter = 0
		self.maxContinueZeroCounter = 30
		self.sendAble = True
Exemplo n.º 3
0
from practicum import findDevices
from peri import PeriBoard
from time import sleep

devs = findDevices()

if len(devs) == 0:
    print "*** No MCU board found."
    exit(1)

b = PeriBoard(devs[0])
print "*** MCU board found"
print "*** Device manufacturer: %s" % b.getVendorName()
print "*** Device name: %s" % b.getDeviceName()

count = 0
while True:
    sleep(0.1)
    rfid = b.getRFID()
    print rfid

Exemplo n.º 4
0
def main():
    for i, dev in enumerate(findDevices()):
        board = PeriBoard(dev)
    setALLout(board, 0)
    setALLin(board, 0)