I have a gyroscope that I got from Adafruit that works great with the Arduino. I believe the library is not platform agnostic so it should work on the Spark Core. When I copy and paste the .h file above the setup() and loop() functions and press ‘verify’ I get an error that says “There was an error saving firmware. Sorry about that.”
Just realized that my session just expired. I was able to somehow log on via IE (I’ve been having a hard time behind my proxy at work), so it must have been blocking it. Here’s my post about my other issue
I created a new app and included the .h and .cpp files (I think, it said they were already in the app after I did the first one), but it gives me a bunch of compiling errors. Do you think I’m doing something wrong? @kennethlimcp
@peekay123 I copied the .h file into a sample program (above setup() and loop() ) and I copied the .cpp below setup() and loop(). When I press 'verify' I get this error:
In file included from ../inc/spark_wiring.h:30:0,
from ../inc/application.h:29,
from lasttest.cpp:17:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
lasttest.cpp:20:29: fatal error: Adafruit_Sensor.h: No such file or directory
#line 16
^
compilation terminated.
make: *** [lasttest.o] Error 1