OLED Charts: Line Chart (internal_oled_draw_line_graph)¶
What it does: Plots a graph of the data in the area X, Y, W, H; style can be line, area or points.

Inputs¶
DATA: value of type Value.X: value of type Value.Y: value of type Value.W: value of type Value.H: value of type Value.- Field
STYLE: parameter selection in the block menu.
Output¶
- None (statement block).
When to use it¶
- When you want to draw on the display the progress of the data on the specified coordinates.
- For trend graphs (temperature, voltage, power, rate of change).
Tips and pitfalls¶
- The
STYLEfield toggles a specific function:draw_line_graph_simple,draw_area_graph, ordraw_dot_graph. - Block draws to
fbuf; you will see changes to OLED afteroded_refresh.
Generated Python example¶
oled_charts.draw_line_graph_simple(fbuf, 0, 0, 128, 40, chart_data_0)