From fc55ae2e48b183d38016f01e756a29f2c5a47fab Mon Sep 17 00:00:00 2001 From: chrys87 Date: Mon, 30 Jan 2017 16:05:50 +0100 Subject: [PATCH] Create dummy.py --- src/fenrir/brailleDriver/dummy.py | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/fenrir/brailleDriver/dummy.py diff --git a/src/fenrir/brailleDriver/dummy.py b/src/fenrir/brailleDriver/dummy.py new file mode 100644 index 00000000..c0543b03 --- /dev/null +++ b/src/fenrir/brailleDriver/dummy.py @@ -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')