adafruit / Adafruit_CircuitPlayground

library for Circuit Playground board
171 stars 77 forks source link

Adafruit_SleepyDog.h not found when compiling megademo example. #36

Closed ReanimationXP closed 6 years ago

ReanimationXP commented 6 years ago

When flashing the Circuit Playground library's megademo example, I was presented with an error citing that Adafruit_SleepyDog.h was missing. After searching the github I only see it referenced one other place, which is .travis.yml. Specifically:

install:
   - arduino --install-library "Adafruit LED Backpack Library","Adafruit GFX Library","Adafruit SleepyDog Library","Adafruit Zero FFT Library"

I checked my libraries and found that Adafruit SleepyDog Library was not installed, despite having just recently installed the Adafruit Circuit Playground library. I tried deleting the Playground library and then reinstalling it, which worked fine, but SleepyDog still was not present. Only after searching for it manually in the library manager and installing it did megademo compile and flash correctly.

I'd venture to guess something is going wrong with the install script. I wasn't aware libraries could even install other libraries as dependencies. I assume that's what's supposed to be happening here and that'd be a neat and interesting feature if it worked :) Ideas?

My hourly is a bit old but it's still newer than the latest release: 1.8.6 Hourly Build 2018/04/19 10:37

ReanimationXP commented 6 years ago

Also worth noting that other libraries here like LED Backpack Library were also not installed.

ladyada commented 6 years ago

hi it's mentioned here! :) https://github.com/adafruit/Adafruit_CircuitPlayground/blob/cc82c9165066b80afb715eb46153a85857fd5f20/examples/mega_demo/mega_demo.ino#L13

ReanimationXP commented 6 years ago

Okay, but why is it mentioned in the -install-library flag then?

I might also suggest moving that blurb next to the actual include so when the error is presented the user can more easily see it.

ladyada commented 6 years ago

thats so travis can compile things, you can read about it here https://learn.adafruit.com/the-well-automated-arduino-library

ReanimationXP commented 6 years ago

Ah, thanks. Found it after posting. Didn't occur to me it'd have nothing to do with Arduino. Thanks :)