Skip to content

Tone Library fails to comply for the Leonardo #13

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. include tone library on a Arduino leonardo board.
2. #include <Tone.h>
3.

What is the expected output? What do you see instead?
A proper compile is expected. Instead there is an error compiling.

/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp: In member function 
'void Tone::begin(uint8_t)':
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp:149: error: 'TCCR2A' 
was not declared in this scope
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp:150: error: 'TCCR2B' 
was not declared in this scope
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp:151: error: 'WGM21' 
was not declared in this scope
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp:152: error: 'CS20' 
was not declared in this scope
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp: In member function 
'void Tone::play(uint16_t, uint32_t)':
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp:256: error: 'TCCR2B' 
was not declared in this scope
/Users/Alexander/Documents/Arduino/libraries/Tone/Tone.cpp:314: error: 'OCR2A' 
was not declared in this scope



What version of the product are you using? On what operating system?
Arduino 1.0.3 with a Arduino Leonardo on Mac OSX 10.8.3

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 nmc.arus...@gmail.com on 24 Apr 2013 at 7:18

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions