update brldemo to refresh braille for 5 sec
This commit is contained in:
parent
6e71e80275
commit
9b6c732678
@ -1,13 +1,17 @@
|
|||||||
#!/bin/python
|
#!/bin/python
|
||||||
|
|
||||||
import brlapi
|
import brlapi
|
||||||
|
import time
|
||||||
|
|
||||||
brl = brlapi.Connection()
|
brl = brlapi.Connection()
|
||||||
print(brl.displaySize)
|
print(brl.displaySize)
|
||||||
print(brl.driverName)
|
print(brl.driverName)
|
||||||
try:
|
|
||||||
brl.writeText('test')
|
t = time.time()
|
||||||
except Exception as e:
|
while(time.time() - t <= 5):
|
||||||
|
try:
|
||||||
|
brl.writeText('this is a 5 second test')
|
||||||
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user