Skip to content

OLED Charts: Point Indicator (internal_oled_draw_dot_gauge)

What it does: Plots a dotted linear indicator for a value in the range 0 to 100.

internal_oled_draw_dot_gauge

Inputs

  • VAL: value of type Value.
  • X: value of type Value.
  • Y: value of type Value.
  • W: value of type Value.
  • H: value of type Value.

Output

  • None (statement block).

When to use it

  • When you want a fine indicator composed of points.
  • For a minimalistic UI on a small OLED display.

Tips and pitfalls

  • The pointer value is always limited to 0-100 in the generator.
  • After rendering the point gauge, perform oded_refresh, otherwise it will only remain in fbuf.

Generated Python example

oled_charts.draw_dot_gauge(fbuf, _chart_int(0), _chart_int(0), _chart_int(0), _chart_int(0), _chart_clamp(_chart_float(0), 0, 100))