Draw a picture on the display
draw_displayRenders pixel-row artwork on the Face Display for a chosen duration, then returns the module to its normal face.
Instructions
Show a picture on the Face Display module for seconds, then return to the face. Pass one string per pixel row, at most the module's resolution (SSD1306 128×64, SSD1331 96×64, ST7789 240×240; see read_display). Characters space . 0 - _ are dark. On colour modules (SSD1331, ST7789) these letters pick a colour: R red, O orange, Y yellow, G green, C cyan, B blue, P purple, M pink, W white, A grey, N brown, K black; any other character is white, and palette adds or overrides letters. On the monochrome SSD1306 every non-blank, non-black character is a lit pixel and colour comes from its panel variant (panel). The picture is centred; scale enlarges each pixel (e.g. 64×32 with scale 2 fills 128×64) and is lowered if it would not fit. Returns read_display, so the result shows what the module actually displays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Pixel rows, top to bottom | |
| panel | No | SSD1306 panel colour: yellow-blue (top 16 rows yellow, rest blue; the default), white, blue or yellow | |
| scale | No | Pixel size (default 1) | |
| palette | No | Extra colour letters, e.g. {"s": "#87ceeb"} (colour modules) | |
| seconds | No | How long to show it (default 10) |