OnionIoT / Onion-Arduino-Library

Onion library for use with the Arduino IDE and the Arduino Dock
GNU General Public License v3.0
9 stars 7 forks source link

Why lib need Adafruit NeoPixel? #1

Open Erliz opened 7 years ago

Erliz commented 7 years ago

When i trying to compile blink2 sketch, Arduino IDE required to install Adafruit NeoPixel lib because it's used in Onion library. fatal error: Adafruit_NeoPixel.h: No such file or directory Why i need it to install, when i just want wireless sketch upload =(

jkruiktech commented 7 years ago

Hi Erliz, It's a bit annoying huh. I had the same problem and didn't need the neopixel functionality. I tried going into the Onion library files to comment out anything related to the neopixel in the code, but its pretty heavily embedded in how the library operates. It's best just to leave it I think.

All you need to do is add the neopixel library to your sketch (should find it in >Sketch>include library>manage libraries>search 'Adafruit neopixel')

greenbreakfast commented 7 years ago

The Onion library is only required for wirelessly flashing the Arduino Dock 1 that was available in 2015 and early 2016.

The Arduino Dock 2, available as of the Omega2 Kickstarter campaign does not need this Onion library to be included or instantiated for wireless sketch upload. See our Arduino Dock 2 documentation for more details: https://docs.onion.io/omega2-docs/flash-arduino-dock-wirelessly.html#flash-arduino-dock-wirelessly