2016-10-07 20:08:01 -04:00
|
|
|
#!/bin/python
|
|
|
|
|
|
|
|
import brlapi
|
2016-10-07 20:18:43 -04:00
|
|
|
import time
|
2016-10-07 20:08:01 -04:00
|
|
|
|
2016-10-07 20:14:10 -04:00
|
|
|
brl = brlapi.Connection()
|
2016-10-07 20:25:03 -04:00
|
|
|
brl.enterTtyMode()
|
|
|
|
print('display size' + str(brl.displaySize))
|
|
|
|
print('driver name'+str(brl.driverName))
|
2016-10-07 20:18:43 -04:00
|
|
|
|
|
|
|
t = time.time()
|
|
|
|
while(time.time() - t <= 5):
|
|
|
|
try:
|
2016-10-07 20:25:03 -04:00
|
|
|
brl.writeText(0,'this is a 5 second test')
|
2016-10-07 20:18:43 -04:00
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2016-10-07 20:08:01 -04:00
|
|
|
|
|
|
|
|