emanuelnascimento / nespad

Automatically exported from code.google.com/p/nespad
0 stars 0 forks source link

error on compile #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Open Example and trying to compile it (NESPad_LED)

What is the expected output? What do you see instead?
a compile...? hah :)

I get this:
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:26:22: error: 
WProgram.h: No such file or directory
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp: In constructor 
'NESpad::NESpad(int, int, int)':
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:46: error: 
'OUTPUT' was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:46: error: 
'pinMode' was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:48: error: 'INPUT' 
was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp: At global scope:
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:51: error: 'byte' 
does not name a type
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp: In member 
function 'void NESpad::strobe()':
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:64: error: 'HIGH' 
was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:64: error: 
'digitalWrite' was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:65: error: 
'delayMicroseconds' was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:66: error: 'LOW' 
was not declared in this scope
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp: At global scope:
/Users/theUser/Documents/Arduino/libraries/NESpad/NESpad.cpp:69: error: 'byte' 
does not name a type

What version of the product are you using? On what operating system?
using 1.3 of the library, arduino 1.0.1 IDE, osx 10.7.4

Please provide any additional information below.
other libraries seem to work, and I can successfully compile examples as well 
as upload them to arduino.

Original issue reported on code.google.com by OHhiLuk...@gmail.com on 24 Aug 2012 at 11:53

GoogleCodeExporter commented 8 years ago
seems it has to do with the missing programs, in the .cpp file you have a 
reference to WProgram.h header file that doesn't exist in the download.

Original comment by adjustre...@gmail.com on 26 Aug 2012 at 11:34

GoogleCodeExporter commented 8 years ago
No, that's a file that used to come with Arduino <1.0 and is not there as of 
1.0.  Check the list of issues - I just left a solution on someone else's 
report of the same thing.  Someone else also posted the fix as a patch, if 
you're a person that knows how to use patches.

Original comment by rah...@gmail.com on 27 Aug 2012 at 1:20

GoogleCodeExporter commented 8 years ago
Ah, I see what happened - I answered this issue in the wrong place. :)  Go the 
issue named "Patch file for Arduino IDE 1.0.1" .. it has both the patch file 
and also my instructions (which don't require the patch file).

Original comment by rah...@gmail.com on 27 Aug 2012 at 1:22