Skip to content

OLED graphs: fill list with value (internal_oled_data_fill)

What it does: Creates a data list of the specified length filled with the same value (restricted to the selected range).

internal_oled_data_fill

Inputs

  • COUNT: value of type Value.
  • VAL: value of type Value.
  • list LIST: parameter selection in the block menu.
  • list RANGE: parameter selection in the block menu.

Output

  • None (statement block).

When to use it

  • When you need an initialization or reference chart course.
  • For quickly creating test data.

Tips and pitfalls

  • COUNT is converted to an integer; a negative count is set to 0.
  • The filled value is clamped + normalized to a scale of 0-100 before saving.

Generated Python example

chart_data_0 = chart_data_fill(64, 0, 0, 100)