def __init__(self): puertos = (os.popen("ls /dev/ttyACM*").read()).split() #for x in puertos: #print(x) #ser = scan(x,q) #try: thread1 = Joystick(1, "Controller") thread1.start() while 1: print(globalVariables.fila.get()[0]) print(globalVariables.fila.get()[1])