DrZAP

Arduino Library problem

Recommended Posts

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?

 

Share this post


Link to post
Share on other sites
Posted (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 by jpeyron

Share this post


Link to post
Share on other sites
Posted (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 by DrZAP
ino was autocorrected to int.

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

I have used the latest Arduino IDE, which is version 1.8.0.  I've tried several genuine Arduino Uno boards.  The issue persists.

Share this post


Link to post
Share on other sites

@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 ...)

Share this post


Link to post
Share on other sites

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 likes this

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now