Skip to content

OLED Charts: Radial Line Indicator (internal_oled_draw_radial_line_gauge)

What it does: Draws a radial line marker with an adjustable number of spokes.

internal_oled_draw_radial_line_gauge

Inputs

  • VAL: value of type Value.
  • X: value of type Value.
  • Y: value of type Value.
  • R: value of type Value.
  • LINES: value of type Value.

Output

  • None (statement block).

When to use it

  • When you want a circular indicator composed of lines.
  • For a modern dashboard look on an OLED display.

Tips and pitfalls

  • Number of rays LINES is converted to an integer in the generator.
  • Drawing is in the framebuffer; to oded_refresh transfer the radial gauge to the OLED.

Generated Python example

oled_charts.draw_radial_line_gauge(fbuf, _chart_int(0), _chart_int(0), _chart_int(0), _chart_int("text"), _chart_clamp(_chart_float(00