Skip to content

OLED charts: array length (internal_oled_data_len)

What it does: Returns the number of elements in the chart data list.

internal_oled_data_len

Inputs

  • list LIST: parameter selection in the block menu.

Output

  • Value.

When to use it

  • When you need to monitor the filling of the data buffer.
  • For "draw after N patterns" conditions.

Tips and pitfalls

  • Returns list length via helper chart_data_len; returns 0 on type error.
  • Fits as a condition before internal_oled_data_get to check the index.

Generated Python example

count = chart_data_len(chart_data_0)