self.enclosureobject inherited from the
MycroftSkillbase class. This object acts as an interface to the Enclosure and allows the Skill creator to draw to the mouth display.
mouth_text()method of the
HIwhich stands for a Width of 7 and a height of 8 and each A stands for a segment of 4 pixels in the off state.
mouth_display_png()method of the
mouth_display_png()expects the first argument to be the image absolute path. Optional arguments are
threshold: The value at which a pixel should be considered 'dark' or 'illuminated'
invert: Treat white in the image as illuminated pixels, and black as dark pixels
x: The x position (horizontal) at which the image should be displaye, in pixels
y: The y position (vertical) at which the image should be displayed, in pixels
refresh: clear the display before writing to it