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:08:01 -04:00
|
|
|
print(brl.displaySize)
|
|
|
|
print(brl.driverName)
|
2016-10-07 20:18:43 -04:00
|
|
|
|
|
|
|
t = time.time()
|
|
|
|
while(time.time() - t <= 5):
|
|
|
|
try:
|
|
|
|
brl.writeText('this is a 5 second test')
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2016-10-07 20:08:01 -04:00
|
|
|
|
|
|
|
|