NeoPixel
R2026bControl color and brightness of RGB and RGBW Adafruit NeoPixel LED strip
Since R2024a
Libraries:
Simulink Support Package for Arduino Hardware /
Common
Description
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Use the NeoPixel block to control the color and brightness of RGB or RGBW Adafruit® NeoPixel LED strip. Using the block, you can set the color of individual pixels for a three-color format (red–green–blue) or a four-color format (red–green–blue–white) NeoPixel strip. The block supports configuring a maximum of 1024 pixels on the NeoPixel LED strip.
Limitations
The NeoPixel block does not support the Arduino® Nano 33 BLE Sense and ESP32-S3 series of boards currently.
You can use up to
10NeoPixel blocks in a Simulink® model and deploy the model to an Arduino board.If you use the NeoPixel block with the Input Capture, Servo Write, Standard Servo Read, SAMD Hardware Interrupt, AVR Hardware Interrupt, External Interrupt, or Encoder blocks in a Simulink model, the NeoPixel block might not behave as expected.
Ports
Input
Parameters
Version History
Introduced in R2024a