Open GoogleCodeExporter opened 8 years ago
Hello,
I just had the same problem and I found the solution here
http://forum.arduino.cc/index.php?topic=100381.0
"Just find the file called Tone.cpp find the line near the top '#include
<wiring.h>' & change it to #include <Arduino.h> save it, then load the IDE ,
load the example, and it compiles."
You can edit the file with Notepad.
Original comment by yusuf.kh...@gmail.com
on 21 Oct 2013 at 11:30
Thank you for help, but this dosen't work.
(sry 4 my bad english ;D )
Error:
Arduino: 1.5.4 (Windows NT (unknown)), Board: "Arduino Uno"
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp: In member function
'void Tone::begin(uint8_t)':
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:121: error:
'bitWrite' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:123: error:
'digitalPinToPort' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:123: error:
'portOutputRegister' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:124: error:
'digitalPinToBitMask' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp: In member function
'void Tone::play(uint16_t, uint32_t)':
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:198: error:
'OUTPUT' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:198: error:
'pinMode' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:294: error:
'bitWrite' was not declared in this scope
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp: In member function
'void Tone::stop()':
C:\Users\Edoardo2\Documents\Arduino\libraries\Tone\Tone.cpp:361: error:
'digitalWrite' was not declared in this scope
Original comment by Edoardo....@gmail.com
on 21 Oct 2013 at 5:36
P.s: Here's my "tone.cpp"
Original comment by Edoardo....@gmail.com
on 21 Oct 2013 at 5:39
Attachments:
Did it not save or did you remove the edit? Also, where is your Tone folder?
Original comment by yusuf.kh...@gmail.com
on 21 Oct 2013 at 6:33
It seems this library is abandoned...Could someone confirm this? What a pity
Original comment by q2d...@gmail.com
on 26 Mar 2015 at 4:35
Original issue reported on code.google.com by
Edoardo....@gmail.com
on 5 Oct 2013 at 2:21