Code doesnt work
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 52
- Joined: Sun Sep 04, 2011 7:37 am
Re: Code doesnt work
The following pictures are my directory, preferences, and error message that i get when i run the code. I made sure that everything was identical to yours.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Code doesnt work
OK, thanks.
How about a screenshot showing the Adafruit_NFCShield_I2C folder opened up. It should look like this:
How about a screenshot showing the Adafruit_NFCShield_I2C folder opened up. It should look like this:
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Code doesnt work
Please post the exact text of the sketch you are trying to compile. We are having trouble trying to reproduce the problem here.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Code doesnt work
Also, try restarting the Arduino IDE.
-
- Posts: 52
- Joined: Sun Sep 04, 2011 7:37 am
Re: Code doesnt work
I am trying to compile the read mifare card sketch and I did restart the IDE
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Code doesnt work
Have you made any changes at all to the readmifare sketch? It compiles just fine for us.
In the Sketch:Import LIbrary... menu - does Adafruit_NFCShield_I2C show up in the pop-up list?
In the Sketch:Import LIbrary... menu - does Adafruit_NFCShield_I2C show up in the pop-up list?
-
- Posts: 52
- Joined: Sun Sep 04, 2011 7:37 am
Re: Code doesnt work
I don't believe I made any changes to the code and no it doesn't appear in the drop down menu.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Code doesnt work
That is usually an indication that your library is not installed correctly - although from the screen-shots posted it seems to be in the right place.
Can you post a screenshot of the File->Preferences dialog? Any chance you have changed the default sketchbook location?
Can you post a screenshot of the File->Preferences dialog? Any chance you have changed the default sketchbook location?
-
- Posts: 52
- Joined: Sun Sep 04, 2011 7:37 am
Re: Code doesnt work
I think this is the picture you're requesting...
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Code doesnt work
And are the library files in that exact directory, like this:?
/Users/sgribben7/Documents/Arduino/libraries/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.cpp
and
/Users/sgribben7/Documents/Arduino/libraries/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h
/Users/sgribben7/Documents/Arduino/libraries/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.cpp
and
/Users/sgribben7/Documents/Arduino/libraries/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Code doesnt work
Oh, duhhhhhh!!!
Sorry, Bailey - it was looking right at me and I didn't see it.
The path in your preferences is supposed to be the sketchbook location. You've got the path to libraries in there. Change it to look like this:
/Users/sgribben7/Documents/Arduino
Click OK, and then restart the Arduino application.
Thanks for being patient...
Sorry, Bailey - it was looking right at me and I didn't see it.
The path in your preferences is supposed to be the sketchbook location. You've got the path to libraries in there. Change it to look like this:
/Users/sgribben7/Documents/Arduino
Click OK, and then restart the Arduino application.
Thanks for being patient...
-
- Posts: 52
- Joined: Sun Sep 04, 2011 7:37 am
Re: Code doesnt work
sorry i havent been online in a while but IT WORKED!! I should have seen that too! thank you so much for all of your help and patience!!
-Bailey
-Bailey
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Code doesnt work
You're welcome! Good luck with your project!
- shug white
- Posts: 2
- Joined: Fri Oct 18, 2013 3:05 pm
Re: Code doesnt work
I'm having the same problem and I have to say before you reply that I have been through all the steps above and I'm still getting this:
Please be positive and constructive with your questions and comments.