Include library in extensions


#1

i m try to write a extension with for a LED strips, i have try the extension but no response from LED(but the code successful upload to the mbot). Then i try the same code at arduino IDE, the code is work.

i guess the reason is how to write including the library, i have use
#include “Adafruit_NeoPixel.h” in the Arduino IDE and use
#include “NeoPixel/Adafruit_NeoPixel.h” in the “lib” of Mblock5, as the .h and .ccp file already upload in the folder “NeoPixel” in the extension.

i also check the .ccp file use following to call the .h file:
#include “Adafruit_NeoPixel.h”

do i need to modify anything for of above to let the extension read the library ???


#2

You have to install the libraries on Arduino IDE. See