fenrir/play zone/writeBrl.py

19 lines
355 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()
while(time.time() - t <= 5):
try:
2016-10-07 20:29:01 -04:00
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:08:01 -04:00