So since I’m getting the infamous building binary failed error I attempted to flash my code using CLI.
This is the result when trying to flash the NeoPixel example. Any idea why I’m getting these undefined reference errors?
C:\Users\s125556\My Documents\Photon Firmware>particle flash 23003b0013473433393
83037 neopixel
Including:
C:/Users/s125556/My Documents/Photon Firmware/neopixel/neopixel.h
C:/Users/s125556/My Documents/Photon Firmware/neopixel/neopixel.ino
C:/Users/s125556/My Documents/Photon Firmware/neopixel/neopixel.cpp
attempting to flash firmware to your device 23003b001347343339383037
Flash device failed
../../../build/target/user/platform-6/libuser.a(neopixel.o): In function `setup'
:
neopixel.cpp:22: undefined reference to `Adafruit_NeoPixel::begin()'
neopixel.cpp:23: undefined reference to `Adafruit_NeoPixel::show()'
../../../build/target/user/platform-6/libuser.a(neopixel.o): In function `Wheel(
unsigned char)':
neopixel.cpp:46: undefined reference to `Adafruit_NeoPixel::Color(unsigned char,
unsigned char, unsigned char)'
neopixel.cpp:49: undefined reference to `Adafruit_NeoPixel::Color(unsigned char,
unsigned char, unsigned char)'
neopixel.cpp:52: undefined reference to `Adafruit_NeoPixel::Color(unsigned char,
unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(neopixel.o): In function `rainbo
w(unsigned char)':
neopixel.cpp:34: undefined reference to `Adafruit_NeoPixel::numPixels() const'
neopixel.cpp:35: undefined reference to `Adafruit_NeoPixel::setPixelColor(unsign
ed short, unsigned long)'
neopixel.cpp:37: undefined reference to `Adafruit_NeoPixel::show()'
../../../build/target/user/platform-6/libuser.a(neopixel.o): In function `__stat
ic_initialization_and_destruction_0':
neopixel.cpp:18: undefined reference to `Adafruit_NeoPixel::Adafruit_NeoPixel(un
signed short, unsigned char, unsigned char)'
neopixel.cpp:18: undefined reference to `Adafruit_NeoPixel::~Adafruit_NeoPixel()
'
collect2: error: ld returned 1 exit status
make: *** [c420fc473f292df8918365af6616780b75e7fc4fd87bc9a2e1a3a6b67ed8.elf] Err
or 1
C:\Users\s125556\My Documents\Photon Firmware>