Public Member Functions | Public Attributes | List of all members
mycroft.client.enclosure.mark1.EnclosureWriter Class Reference
Inheritance diagram for mycroft.client.enclosure.mark1.EnclosureWriter:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, serial, bus, size=16)
 
def flush (self)
 
def stop (self)
 
def write (self, command)
 

Public Attributes

 alive
 
 bus
 
 commands
 
 daemon
 
 serial
 

Detailed Description

Writes data to Serial port.
    #. Enqueues all commands received from Mycroft enclosures
       implementation
    #. Process them on the received order by writing on the Serial port

E.g. Displaying a text on Mycroft's Mouth
    #. ``EnclosureMouth`` sends a text command
    #. ``EnclosureWriter`` captures and enqueue the command
    #. ``EnclosureWriter`` removes the next command from the queue
    #. ``EnclosureWriter`` writes the command to Serial port

Note: A command has to end with a line break

Definition at line 207 of file scripts/mycroft/client/enclosure/mark1/__init__.py.

Constructor & Destructor Documentation

def mycroft.client.enclosure.mark1.EnclosureWriter.__init__ (   self,
  serial,
  bus,
  size = 16 
)

Member Function Documentation

def mycroft.client.enclosure.mark1.EnclosureWriter.flush (   self)
def mycroft.client.enclosure.mark1.EnclosureWriter.stop (   self)
def mycroft.client.enclosure.mark1.EnclosureWriter.write (   self,
  command 
)

Member Data Documentation

mycroft.client.enclosure.mark1.EnclosureWriter.alive
mycroft.client.enclosure.mark1.EnclosureWriter.bus
mycroft.client.enclosure.mark1.EnclosureWriter.commands
mycroft.client.enclosure.mark1.EnclosureWriter.daemon
mycroft.client.enclosure.mark1.EnclosureWriter.serial

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


mycroft_ros
Author(s):
autogenerated on Mon Apr 26 2021 02:35:40