Code doesnt work

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
baileygrib
 
Posts: 52
Joined: Sun Sep 04, 2011 7:37 am

Re: Code doesnt work

Post by baileygrib »

Screen Shot 2013-01-19 at 7.41.44 PM.png
Screen Shot 2013-01-19 at 7.41.44 PM.png (62.24 KiB) Viewed 1077 times
Screen Shot 2013-01-19 at 7.38.21 PM.png
Screen Shot 2013-01-19 at 7.38.21 PM.png (16.74 KiB) Viewed 1077 times
Sorry I havent replied i have been stuck at school doing my science competition.
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.
Screen Shot 2013-01-19 at 7.37.52 PM.png
Screen Shot 2013-01-19 at 7.37.52 PM.png (67.25 KiB) Viewed 1077 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Code doesnt work

Post by adafruit_support_rick »

OK, thanks.

How about a screenshot showing the Adafruit_NFCShield_I2C folder opened up. It should look like this:
Adafruit_NFCShield_I2C.png
Adafruit_NFCShield_I2C.png (82.82 KiB) Viewed 1075 times

baileygrib
 
Posts: 52
Joined: Sun Sep 04, 2011 7:37 am

Re: Code doesnt work

Post by baileygrib »

Screen Shot 2013-01-19 at 9.14.08 PM.png
Screen Shot 2013-01-19 at 9.14.08 PM.png (69.23 KiB) Viewed 1066 times

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Code doesnt work

Post by adafruit_support_bill »

Please post the exact text of the sketch you are trying to compile. We are having trouble trying to reproduce the problem here.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Code doesnt work

Post by adafruit_support_rick »

Also, try restarting the Arduino IDE.

baileygrib
 
Posts: 52
Joined: Sun Sep 04, 2011 7:37 am

Re: Code doesnt work

Post by baileygrib »

I am trying to compile the read mifare card sketch and I did restart the IDE

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Code doesnt work

Post by adafruit_support_rick »

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?

baileygrib
 
Posts: 52
Joined: Sun Sep 04, 2011 7:37 am

Re: Code doesnt work

Post by baileygrib »

I don't believe I made any changes to the code and no it doesn't appear in the drop down menu.

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Code doesnt work

Post by adafruit_support_bill »

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?

baileygrib
 
Posts: 52
Joined: Sun Sep 04, 2011 7:37 am

Re: Code doesnt work

Post by baileygrib »

Screen Shot 2013-01-19 at 7.41.44 PM.png
Screen Shot 2013-01-19 at 7.41.44 PM.png (62.24 KiB) Viewed 901 times
I think this is the picture you're requesting...

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Code doesnt work

Post by adafruit_support_rick »

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

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Code doesnt work

Post by adafruit_support_rick »

Oh, duhhhhhh!!! :oops: :oops: :oops:
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... :oops:

baileygrib
 
Posts: 52
Joined: Sun Sep 04, 2011 7:37 am

Re: Code doesnt work

Post by baileygrib »

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

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Code doesnt work

Post by adafruit_support_rick »

You're welcome! Good luck with your project! :D

User avatar
shug white
 
Posts: 2
Joined: Fri Oct 18, 2013 3:05 pm

Re: Code doesnt work

Post by shug white »

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:
Screen Shot 2014-07-19 at 10.34.13 PM.png
Screen Shot 2014-07-19 at 10.34.13 PM.png (62.24 KiB) Viewed 325 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”