hi everybody!
I am following the instructions on the following link to try to build a laser harp:
http://www.radioshack.com/graphics/uc/rsk/Support/ProductManuals/Laser_Harp_Online_Instructions.pdf
For it to work, it is neccesary to install the "Tone" library, that I downloaded from:
http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation
I installed it, and tried a very simple example:
#include <Tone.h>
Tone tone1;
void setup()
{
tone1.begin(13);
tone1.play(NOTE_A4);
}
void loop()
{
}
But it gives me the following compiling errors, that I do not know how to sort out. ANY IDEA? THANKS!!!!
D:\temp\Arduino\libraries\Tone\Tone.cpp: In member function 'void Tone::begin(uint8_t)':
D:\temp\Arduino\libraries\Tone\Tone.cpp:121: error: 'bitWrite' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:123: error: 'digitalPinToPort' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:123: error: 'portOutputRegister' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:124: error: 'digitalPinToBitMask' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp: In member function 'void Tone::play(uint16_t, uint32_t)':
D:\temp\Arduino\libraries\Tone\Tone.cpp:198: error: 'OUTPUT' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:198: error: 'pinMode' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp:294: error: 'bitWrite' was not declared in this scope
D:\temp\Arduino\libraries\Tone\Tone.cpp: In member function 'void Tone::stop()':
D:\temp\Arduino\libraries\Tone\Tone.cpp:361: error: 'digitalWrite' was not declared in this scope