
Refer to the documentation for details on usage and syntax. Wire up the Arduino board and the add-on device properly before creating the object to avoid a connection error in MATLAB.ģ. After installing this add-on library and the required Arduino library, type "listArduinoLibraries" in MATLAB to see if the add-on is properly installed.Ģ. On Linux®, the default path is "Arduino IDE Path/portable/sketchbook/libraries/"Īrduino IDE Path is returned by the command arduinoio.IDERoot in the MATLAB Command Windowġ.


On Windows®, the default path is "Arduino IDE Path\portable\sketchbook\libraries\".On Linux®, the default path is "/home//Arduino/libraries".On Mac®, the default path is "~/Documents/Arduino/libraries/".On Windows®, the default path is "Documents\Arduino\libraries\".Move the ‘Adafruit_NeoPixel’ folder into the "libraries" folder inside your Arduino sketchbook folder: Unpackage the zip into local directory and rename the folder to ‘Adafruit_NeoPixel'.ģ. Important: Before using this add-on library in MATLAB, you need to install the Adafruit NeoPixel Arduino library. It includes the documentation and examples that demonstrate the use of the Adafruit NeoPixel addon. Sensor = addon(a, 'Adafruit/NeoPixel', 'D6', 30) % Create NeoPixel strip object with 30 pixels % Create arduino object with the add-on libraryĪ = arduino('COM10', 'Uno', 'Libraries', 'Adafruit/NeoPixel') With this add-on, you can control the color and brightness of an RGB or RGBW NeoPixel strip to produce various lighting effects. This add-on library extends MATLAB Support Package for Arduino Hardware to control Adafruit NeoPixel LED strip.

This add-on is supported for MATLAB R2019a or higher.
