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 | |
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.
def mycroft.client.enclosure.mark1.EnclosureWriter.__init__ | ( | self, | |
serial, | |||
bus, | |||
size = 16 |
|||
) |
Definition at line 223 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureWriter.flush | ( | self | ) |
Definition at line 232 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureWriter.stop | ( | self | ) |
Definition at line 244 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
def mycroft.client.enclosure.mark1.EnclosureWriter.write | ( | self, | |
command | |||
) |
Definition at line 241 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureWriter.alive |
Definition at line 225 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureWriter.bus |
Definition at line 228 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureWriter.commands |
Definition at line 229 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureWriter.daemon |
Definition at line 226 of file scripts/mycroft/client/enclosure/mark1/__init__.py.
mycroft.client.enclosure.mark1.EnclosureWriter.serial |
Definition at line 227 of file scripts/mycroft/client/enclosure/mark1/__init__.py.