Skip to content

NeoPixel — set the LED in the buffer (neopixel_control)

What it does: Writes the color to the internal buffer of a specific LED according to the index.

neopixel_control

Inputs

  • address: LED index (0 to max_neopixel - 1).
  • color: RGB triples, e.g. from neopixel_color_numbers.

Output

  • None (statement block).

When to use it

  • For setting individual LEDs before mass sending to tape.
  • For animations where you change multiple LEDs in one step.

Tips and pitfalls

  • This LED block does not physically update; after changes call neopixel_write.
  • When the index is out of range, the generated function will try to print an error message.

Generated Python example

neopixel_write(0, (255, 0, 0))