fenrir/play zone/writeBrl.py

20 lines
354 B
Python
Raw Permalink 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)
time.sleep(5)
2016-10-07 20:57:59 -04:00
brl.leaveTtyMode()