Exemplo n.º 1
0
def loop():
    while True:
        padog.mainloop()
Exemplo n.º 2
0
def loop(tt):
    padog.mainloop()
Exemplo n.º 3
0
def loop2(t):
  padog.mainloop()
Exemplo n.º 4
0
    exec(open('web_c.py').read())


def app_2():
    try:
        exec(open('my_code.py').read())
    except:
        print('积木编程代码执行出错,跳过...')


def loop(tt):
    padog.mainloop()


#_thread.start_new_thread(app_1, ())
#_thread.start_new_thread(app_2, ())
#_thread.start_new_thread(loop, ())
#t.init(period=10,mode=Timer.PERIODIC,callback=loop)

t.init(period=50, mode=Timer.PERIODIC, callback=OpenMV_Run)
padog.gesture(padog.in_pit, padog.in_rol, padog.in_y)
padog.speed = 0.045
while True:
    padog.mainloop()
    '''
  try:
      OpenMV_Run(0)
  except:
    pass
  '''