self.enclosure
object inherited from the MycroftSkill
base 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 enclosure
object.HI
which 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 enclosure
object.mouth_display_png()
expects the first argument to be the image absolute path. Optional arguments arethreshold
: 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 pixelsx
: The x position (horizontal) at which the image should be displaye, in pixelsy
: The y position (vertical) at which the image should be displayed, in pixelsrefresh
: clear the display before writing to itimg_code
of self.enclosure.mouth_display()
.