Skip to content

OLED Charts: Radial Segment Indicator (internal_oled_draw_radial_segment_gauge)

What it does: Renders a radial segment pointer with an adjustable number of segments.

internal_oled_draw_radial_segment_gauge

Inputs

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

Output

  • None (statement block).

When to use it

  • When you want circular "pieces" similar to an LED ring.
  • For situations where quick visual orientation is important.

Tips and pitfalls

  • Number of segments SEG is an integer value; use a positive number for meaningful output.
  • Like the other gauge blocks, it works with the VAL value in the range 0-100.

Generated Python example

oled_charts.draw_radial_segment_gauge(fbuf, _chart_int(0), _chart_int(0), _chart_int(0), _chart_int(0), _chart_clamp(_chart_float(00