Fun with PWM  0.32
Keyboard.KeyboardThread Class Reference

Keyboard service. More...

Inheritance diagram for Keyboard.KeyboardThread:

Public Member Functions

def __init__ (self)
 
def check (self)
 
def start (self)
 
def stop (self)
 
def isRunning (self)
 
def printCallback (self, hex, ascii)
 
def addCallback (self, index, func)
 
def removeCallback (self, index)
 
def hasCallback (self, index)
 
def doCallback (self, hex=None, ascii=None)
 

Static Public Member Functions

def GetInstance ()
 

Public Attributes

 scheduler
 
 useTask
 
 terminalStatus
 
 callbacks
 
 asciimap
 

Detailed Description

Keyboard service.

Constructor & Destructor Documentation

§ __init__()

def Keyboard.KeyboardThread.__init__ (   self)
Initializes KeyboardThread object

@param specification
@param motionScheduler
@param scheduler
@param useTask

Member Function Documentation

§ addCallback()

def Keyboard.KeyboardThread.addCallback (   self,
  index,
  func 
)
adds a callback

§ check()

def Keyboard.KeyboardThread.check (   self)
checks for keyboard input

§ doCallback()

def Keyboard.KeyboardThread.doCallback (   self,
  hex = None,
  ascii = None 
)
perform callbacks

§ hasCallback()

def Keyboard.KeyboardThread.hasCallback (   self,
  index 
)
checks if a callback has already been added

§ printCallback()

def Keyboard.KeyboardThread.printCallback (   self,
  hex,
  ascii 
)
prints hex and ascii to console

§ removeCallback()

def Keyboard.KeyboardThread.removeCallback (   self,
  index 
)
removes a callback

§ start()

def Keyboard.KeyboardThread.start (   self)
starts the keyboard service

§ stop()

def Keyboard.KeyboardThread.stop (   self)
stops the keyboard service

The documentation for this class was generated from the following file: