Shared Graphics
These drawing blocks are shared across the pixel-based display families in Code Kit.
They work with:
- 8x8 LED matrix displays
- ST7789 RGB TFT displays
- SSD1306 OLED displays
They do not work with character LCDs.
The same block adapts to the selected display. Colour displays use colour inputs. Monochrome displays use HIGH and LOW.
Clear display
Clear the selected display.
On SSD1306, this block clears the screen immediately. For buffered frame-by-frame drawing, prefer clear buffer on the SSD1306 page.
Fill display
Fill the whole display with one colour or one on/off state.
Set rotation
Rotate the display coordinate system by 0, 90, 180, or 270 degrees.
Set pixel
Set one pixel at an x, y position.
Draw line
Draw a line between two points.
Draw or fill rectangle
Draw a rectangle outline or a filled rectangle.
Draw or fill circle
Draw a circle outline or a filled circle.
Draw or fill triangle
Draw a triangle outline or a filled triangle.
On SSD1306, these blocks usually change only the buffer until you use display buffer. On the ST7789 and 8x8 matrix, changes are shown as the draw commands run.