DrZAP 0 Posted January 6, 2017 Share Posted January 6, 2017 After installing the Arduino analogShield library, and restarting the IDE, I tried to compile this simple program #include <analogShield.h> void setup() { } void loop() { } The compiler returned a bunch of lines like this ../Arduino/libraries/analogShield/analogShield.cpp:314: error: 'SPI_MODE_MASK' was not declared in this scope as if that the compiler was not recognizing the header file. Yet it obviously read the header file or it wouldn't know that SPI_MODE_MASK was even a thing. Any suggestions about how to move forward? Link to post Share on other sites
jpeyron 660 Posted January 6, 2017 Share Posted January 6, 2017 (edited) Hi DrZAP, What board are you using? What version of Adruino IDE are you using? What version of the chipkit core are you using? Have you tried adding the line: #include <SPI.h> to the sketch? Have you tried the example ino's provided in the analogShield library? cheers, Jon Edited January 6, 2017 by jpeyron Link to post Share on other sites
DrZAP 0 Posted January 7, 2017 Author Share Posted January 7, 2017 (edited) I'm using an official Arduino Uno. I've tried it on the Arduino IDE versions 1.0.7, and 1.8.0 I'm not using any chipkit core, just the Arduino. I've tried including the SPI.h header. I've tried compiling all four example ino files. They all give the same compilation errors. Edited January 7, 2017 by DrZAP ino was autocorrected to int. Link to post Share on other sites
jpeyron 660 Posted January 7, 2017 Share Posted January 7, 2017 Hi DrZAP, I do not have a UNO but I just uploaded the passthrough ino using the Arduino IDE onto a WF32 with the analogshield with no issues. I would suggest to upgrade to the newest arduino IDE version which i believe is 1.6.13 and make sure you have the most recent upgraded board files for the Uno. PLease let us know if this issue persists. cheers, Jon Link to post Share on other sites
DrZAP 0 Posted January 9, 2017 Author Share Posted January 9, 2017 I have used the latest Arduino IDE, which is version 1.8.0. I've tried several genuine Arduino Uno boards. The issue persists. Link to post Share on other sites
[email protected] 437 Posted January 9, 2017 Share Posted January 9, 2017 @DrZAP, I'm wondering if you need to rebuild your ~/Arduino/libraries directory--that perhaps it has remained across re-installs, etc., and that your problem is to be found there. Dan (P.S. I'm not an Arduino master--I've only fired up the IDE a couple of times, and I still haven't had the chance to program my WF32 yet ...) Link to post Share on other sites
jpeyron 660 Posted January 10, 2017 Share Posted January 10, 2017 Hi DrZAP, I have not had an issue with the analogshield using the WF32 with Arduino version 1.8.1 as well as version 1.6.13 . I did find a thread that might help here. cheers, Jon JColvin 1 Link to post Share on other sites
DrZAP 0 Posted January 10, 2017 Author Share Posted January 10, 2017 Thank! That thread led me to download library files that did work HERE. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now