Improve debug for dummy braille driver
This commit is contained in:
parent
18ab70f188
commit
e0c5d14e13
@ -8,7 +8,8 @@ from core import debug
|
|||||||
|
|
||||||
class driver():
|
class driver():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._isInitialized = False
|
pass
|
||||||
|
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
self._isInitialized = True
|
self._isInitialized = True
|
||||||
@ -16,26 +17,28 @@ class driver():
|
|||||||
def getDeviceSize(self):
|
def getDeviceSize(self):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return (0,0)
|
return (0,0)
|
||||||
|
pirnt('BrailleDummyDriver: getDeviceSize 20')
|
||||||
return (20,0)
|
return (20,0)
|
||||||
|
|
||||||
def writeText(self,text):
|
def writeText(self,text):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return
|
return
|
||||||
print(text)
|
pirnt('BrailleDummyDriver: writeText:' + str(text))
|
||||||
|
|
||||||
def connectDevice(self):
|
def connectDevice(self):
|
||||||
pirnt('Connect Dummy Device')
|
pirnt('BrailleDummyDriver: connectDevice')
|
||||||
|
|
||||||
def enterScreen(self, screen):
|
def enterScreen(self, screen):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return
|
return
|
||||||
pirnt('enter screen')
|
pirnt('BrailleDummyDriver: enterScreen')
|
||||||
|
|
||||||
def leveScreen(self):
|
def leveScreen(self):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return
|
return
|
||||||
pirnt('leve screen')
|
pirnt('BrailleDummyDriver: leveScreen')
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return
|
return
|
||||||
pirnt('shutdown')
|
pirnt('BrailleDummyDriver: Shutdown')
|
||||||
|
Loading…
Reference in New Issue
Block a user