OLED Charts: Thermometer (internal_oled_draw_thermometer)¶
What it does: Draws a thermometer pointer for a value in the range 0 to 100.

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 to clearly display the temperature or another scaled quantity.
- For vertical minimum/mid/maximum indication.
Tips and pitfalls¶
- The thermometer uses a scale of 0-100 internally, so it is advisable to remap the value to percentages beforehand.
- It is drawn in the framebuffer, so don't forget
oded_refreshafter rendering.
Generated Python example¶
oled_charts.draw_thermometer(fbuf, _chart_int(0), _chart_int(0), _chart_int(0), _chart_int(0), _chart_clamp(_chart_float(0), 0, 100))