debugging...

This commit is contained in:
Peter L 2021-11-10 14:49:43 +01:00
parent aee4312fc6
commit 67a53cbb08
1 changed files with 10 additions and 8 deletions

View File

@ -206,12 +206,12 @@ def recording(timeout):
return 'OK'
def rewind(*opts):
scroll_h.speed = -100
scroll_v.speed = -100
while (scroll_h.speed + scroll_v.speed) > 0:
time.sleep_ms(10)
scroll_h.c = 0
scroll_v.c = 0
#scroll_h.speed = -100
#scroll_v.speed = -100
#while (scroll_h.speed + scroll_v.speed) > 0:
# time.sleep_ms(10)
#scroll_h.c = 0
#scroll_v.c = 0
return 'OK'
###############################################################################
@ -232,8 +232,10 @@ def parseCmd(cmd_str: str):
if len(parm_str) != 0:
parms = [int(x) for x in parm_str.split('+')]
if _DEBUG:
print(f'parsed command: {cmd}:{parms}')
resp = choice_map[cmd](*parms)
print(cmd, parms, sep=': ')
resp = 'OK'
else:
resp = choice_map[cmd](*parms)
uart0.write(f'{resp}\n'.encode('utf-8'))
def flash_led(times: int = 1, on_ms: int = 200, off_ms: int = 500):