fenrir/play zone/writeBrl.py

19 lines
353 B
Python
Raw Normal View History

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