replace loop by an sleep
This commit is contained in:
parent
de717bca89
commit
0ccf22e378
@ -9,10 +9,10 @@ print('display size' + str(brl.displaySize))
|
||||
print('driver name'+str(brl.driverName))
|
||||
|
||||
t = time.time()
|
||||
while(time.time() - t <= 5):
|
||||
try:
|
||||
#while(time.time() - t <= 5):
|
||||
try:
|
||||
brl.writeText( 'this is a 5 second test')
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
brl.leaveTtyMode()
|
||||
|
||||
time.sleep(5)
|
||||
|
Loading…
Reference in New Issue
Block a user