Tone library error on Arduino 1.5.4 (Win 8)
Opened this issue · 5 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1.include tone library on arduino UNO
2. including #include <Tone.h>
3.
What is the expected output? What do you see instead?
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
What version of the product are you using? On what operating system?
Arduino 1.5.4 on Windows 8
Please provide any additional information below.
I have added "#include <Arduino.h>" to the Tone.ccp file.
Original issue reported on code.google.com by Edoardo....@gmail.com
on 5 Oct 2013 at 2:21
GoogleCodeExporter commented
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
GoogleCodeExporter commented
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
GoogleCodeExporter commented
P.s: Here's my "tone.cpp"
Original comment by Edoardo....@gmail.com
on 21 Oct 2013 at 5:39
Attachments:
GoogleCodeExporter commented
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
GoogleCodeExporter commented
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