I was wondering if anyone could help me find out the issues with this code for this project ( http://www.instructables.com/id/Singing … /?ALLSTEPS ) If someone could help me ASAP because this project is for a science fair next week.
Here is the error codes:
singingPlant.ino: In function 'void visualize(byte, byte)':
singingPlant:38: error: 'GD' was not declared in this scope
singingPlant.ino: In function 'void setup()':
singingPlant:55: error: 'GD' was not declared in this scope
singingPlant:57: error: 'RAM_SPRPAL' was not declared in this scope
singingPlant:57: error: 'TRANSPARENT' was not declared in this scope
singingPlant:61: error: 'RGB' was not declared in this scope
singingPlant:62: error: 'RAM_SPRIMG' was not declared in this scope
singingPlant.ino: In function 'void setvol(byte, byte)':
singingPlant:104: error: 'GD' was not declared in this scope
singingPlant:104: error: 'VOICES' was not declared in this scope
singingPlant.ino: In function 'void loop()':
singingPlant:174: error: 'GD' was not declared in this scope
singingPlant:174: error: 'VOICES' was not declared in this scope
Guino_library.ino: At global scope:
Guino_library:64: error: 'EasyTransfer' does not name a type
Guino_library.ino: In function 'void guino_update()':
Guino_library:93: error: 'ET' was not declared in this scope
Guino_library.ino: In function 'void gBegin(int)':
Guino_library:172: error: 'ET' was not declared in this scope
Guino_library:172: error: 'details' was not declared in this scope
Guino_library.ino: In function 'void gSendCommand(byte, byte, int)':
Guino_library:390: error: 'ET' was not declared in this scope
I have followed those steps and am still getting the issues. thanks for your help but i still need a solution. If there is anybody that has done this project or knows someone that has could they please help me as I am a complete beginner at arduino…
I d/l’ed and installed ONLY the singPlant.ino file. When I verifed it I got this list of errors. Look (mostly) familiar ? You’re missing a library or some such. Why don’t you do a screen capture of your Arduino libraries folder so “we” can see what’s missing.
singingPlant.ino:3:16: warning: GD.h: No such file or directory
singingPlant.ino:5:18: error: mont.h: No such file or directory
singingPlant.ino: In function 'void visualize(byte, byte)':
singingPlant:38: error: 'GD' was not declared in this scope
singingPlant.ino: In function 'void setup()':
singingPlant:46: error: 'gBegin' was not declared in this scope
singingPlant:55: error: 'GD' was not declared in this scope
singingPlant:57: error: 'RAM_SPRPAL' was not declared in this scope
singingPlant:57: error: 'TRANSPARENT' was not declared in this scope
singingPlant:61: error: 'RGB' was not declared in this scope
singingPlant:62: error: 'RAM_SPRIMG' was not declared in this scope
singingPlant:82: error: 'mont' was not declared in this scope
singingPlant.ino: In function 'void setvol(byte, byte)':
singingPlant:104: error: 'GD' was not declared in this scope
singingPlant:104: error: 'VOICES' was not declared in this scope
singingPlant.ino: In function 'void loop()':
singingPlant:142: error: 'guino_update' was not declared in this scope
singingPlant:143: error: 'mont' was not declared in this scope
singingPlant.ino:150: warning: comparison between signed and unsigned integer expressions
singingPlant:174: error: 'GD' was not declared in this scope
singingPlant:174: error: 'VOICES' was not declared in this scope
singingPlant.ino:164: warning: unused variable 'a'
singingPlant:193: error: 'gUpdateValue' was not declared in this scope
singingPlant.ino: In function 'void gInit()':
singingPlant:251: error: 'gAddLabel' was not declared in this scope
singingPlant:253: error: 'gAddSpacer' was not declared in this scope
singingPlant:257: error: 'gAddFixedGraph' was not declared in this scope
singingPlant:258: error: 'gAddSlider' was not declared in this scope
eking804:
did the code still have errors when you put it in to Arduino IDE and and verified it? :?
Yes but I've not had a chance to figure them out yet. I do know the above is the minimum needed to start just by casual inspection of the code. It could be there's yet another library needed, that the author had installed, w/o realizing it.
Continue following the instructions go here and d/l the “Guino” and “EasyTransfer” folders (and contents) and copy/move the unzipped versions in your arduino/libraries folder, alongside the (renamed) “GD” folder. That .zip folder you’ll d/l w/those in it will also include a folder holding the visualization program that runs on your PC. I don’t know if your sketch needs that to run.
Even then more is needed. Try verifying the an example from the “Guino” folder. There’s still errors re:EasyTransfer. Also note that the file “Guino_libray.ino” is in each example folder and so loads w/the example sketch. My guess this file should also be in the singingPlant folder.
The library code is called EasyTransfer. It creates a class called EasyTransfer. The singPlant.ino file uses a function from the Guino_library.ino file which inturn includes EasyTransfer.h. This means the functions defined in the EasyTransfer.cpp file can be used. A statement in the Guino_library.ino file creates an object, 1 instance, of those functions and names that object “ET”. It could have just as well named it “xyz” or anything else but having named it “ET” all the functions of the EasyTransfer class are now usable by calling ET.function_name(), as in ET.begin() in Guino_library.ino.
//create object
EasyTransfer ET;
Given that you’ve put a copy of the Guino_library.ino file in the singingPlant folder, right along w/the singingPlant.ino file, it should now compile.
It doesn’t and lists (first) some verbage indicating the wrong argument types have been used in the Guino_library.ino file.
That’s scary as it appears somebody changed their code and the lower level code that singingPlant.ino depends on is no longer compatible. IF I am correct, that’s not easily fixable by you or me. The rest of the verbage appear to be warnings, generally ignorable.