update brldemo to refresh braille for 5 sec

This commit is contained in:
chrys 2016-10-08 02:18:43 +02:00
parent 6e71e80275
commit 9b6c732678

View File

@ -1,13 +1,17 @@
#!/bin/python
import brlapi
import time
brl = brlapi.Connection()
print(brl.displaySize)
print(brl.driverName)
try:
brl.writeText('test')
except Exception as e:
t = time.time()
while(time.time() - t <= 5):
try:
brl.writeText('this is a 5 second test')
except Exception as e:
print(e)