Create dummy.py
This commit is contained in:
parent
ab9a9b501e
commit
fc55ae2e48
41
src/fenrir/brailleDriver/dummy.py
Normal file
41
src/fenrir/brailleDriver/dummy.py
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributers.
|
||||
|
||||
from core import debug
|
||||
|
||||
class driver():
|
||||
def __init__(self):
|
||||
self._isInitialized = False
|
||||
def initialize(self, environment):
|
||||
self.env = environment
|
||||
self._isInitialized = True
|
||||
|
||||
def getDeviceSize(self):
|
||||
if not self._isInitialized:
|
||||
return (0,0)
|
||||
return (20,0)
|
||||
|
||||
def writeText(self,text):
|
||||
if not self._isInitialized:
|
||||
return
|
||||
print(text)
|
||||
def connectDevice(self):
|
||||
pirnt('Connect Dummy Device')
|
||||
|
||||
def enterScreen(self, screen):
|
||||
if not self._isInitialized:
|
||||
return
|
||||
pirnt('enter screen')
|
||||
|
||||
def leveScreen(self):
|
||||
if not self._isInitialized:
|
||||
return
|
||||
pirnt('leve screen')
|
||||
|
||||
def shutdown(self):
|
||||
if not self._isInitialized:
|
||||
return
|
||||
pirnt('shutdown')
|
Loading…
Reference in New Issue
Block a user