From a809eda8601b1182205caf516609a8ac32068816 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 8 Oct 2016 02:25:03 +0200 Subject: [PATCH] try to enter tty mode --- play zone/writeBrl.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/play zone/writeBrl.py b/play zone/writeBrl.py index 304e20fa..3fa81f6e 100755 --- a/play zone/writeBrl.py +++ b/play zone/writeBrl.py @@ -4,13 +4,14 @@ import brlapi import time brl = brlapi.Connection() -print(brl.displaySize) -print(brl.driverName) +brl.enterTtyMode() +print('display size' + str(brl.displaySize)) +print('driver name'+str(brl.driverName)) t = time.time() while(time.time() - t <= 5): try: - brl.writeText('this is a 5 second test') + brl.writeText(0,'this is a 5 second test') except Exception as e: print(e)