Skip to content

Text (mini font) (fb_txt_mini)

What it does: Draws text in a small font (minifont) at the specified framebuffer coordinates.

fb_txt_mini

Inputs

  • text: value of type Text.
  • px: X coordinate of the upper left corner - integer.
  • py: Y coordinate of the upper left corner - integer.
  • color: Color (0 - black, 1 - white).

Output

  • None (statement block).

When to use it

  • When you need to fit more text on a small OLED.
  • For small axis labels, units or line status.

Tips and pitfalls

  • Block requires library minifont (generator adds import minifont).
  • Like other drawing, writes to framebuffer first, so oded_refresh is required.

Usage example

example_oled_dsiplay_fb_txt_mini

Open example in ESP IDE

Generated Python example

minifont.mini_text(fbuf, str(text), int(0), int(0), int(0))