ArduboyTones doesn't work

It does not compile in its own example
System win10 Use the arduino 1.8.3

Arduino:1.8.3 (Windows 10), 开发板:"Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\LHW\AppData\Local\Arduino15\packages -hardware C:\Users\LHW\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\LHW\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\LHW\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10803 -build-path C:\Users\LHW\AppData\Local\Temp\arduino_build_401729 -warnings=none -build-cache C:\Users\LHW\AppData\Local\Temp\arduino_cache_431273 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\examples\ArduboyTonesTest\ArduboyTonesTest.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\LHW\AppData\Local\Arduino15\packages -hardware C:\Users\LHW\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\LHW\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\LHW\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10803 -build-path C:\Users\LHW\AppData\Local\Temp\arduino_build_401729 -warnings=none -build-cache C:\Users\LHW\AppData\Local\Temp\arduino_cache_431273 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\examples\ArduboyTonesTest\ArduboyTonesTest.ino
Using board 'uno' from platform in folder: C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20
Using core 'arduino' from platform in folder: C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20
Warning: Board arduino:avr:atmega8_8M doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA8_8M
Warning: Board arduino:avr:opti8 doesn't define a 'build.board' preference. Auto-set to: AVR_OPTI8
Detecting libraries used...
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp" -o "nul"
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp" -o "nul"
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM\src" "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp" -o "nul"
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM\src" "-IC:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src" "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp" -o "nul"
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\Arduboy2.cpp
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\Arduboy2Audio.cpp
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\Arduboy2Beep.cpp
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\Arduboy2Core.cpp
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\Sprites.cpp
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\SpritesB.cpp
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\ab_logo.c
Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src\glcdfont.c
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM\src" "-IC:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src" "C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp" -o "nul"
Generating function prototypes...
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM\src" "-IC:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src" "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp" -o "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\preproc\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM\src" "-IC:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src" "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp" -o "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\sketch\ArduboyTonesTest.ino.cpp.o"
Compiling libraries...
Compiling library "Arduboy2-master"
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\ab_logo.c.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\glcdfont.c.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\Arduboy2.cpp.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\Arduboy2Audio.cpp.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\Arduboy2Beep.cpp.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\Arduboy2Core.cpp.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\Sprites.cpp.o
使用已经编译的文件:C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\Arduboy2-master\SpritesB.cpp.o
Compiling library "EEPROM"
Compiling library "ArduboyTones-master"
"C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\variants\standard" "-IC:\Program Files (x86)\Arduino\libraries\Arduboy2-master\src" "-IC:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM\src" "-IC:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src" "C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp" -o "C:\Users\LHW\AppData\Local\Temp\arduino_build_401729\libraries\ArduboyTones-master\ArduboyTones.cpp.o"
In file included from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42:0,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In constructor 'ArduboyTones::ArduboyTones(boolean (*)())':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))

                                                    ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:68:28: note: in expansion of macro 'TONE_PIN2'

   bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low

                            ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t)':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:75:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:75:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:75:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:75:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t, uint16_t, uint16_t)':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:87:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:87:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:87:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:87:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t)':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:102:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:102:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:102:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:102:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tones(const uint16_t*)':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:117:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:117:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:117:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:117:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tonesInRAM(uint16_t*)':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:125:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:125:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:125:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:125:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::noTone()':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:133:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:133:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:133:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:133:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:134:3: error: 'TCCR3B' was not declared in this scope

   TCCR3B = 0; // stop the counter

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42:0,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))

                                                    ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:137:28: note: in expansion of macro 'TONE_PIN2'

   bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low

                            ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::nextTone()':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))

                                                    ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:228:32: note: in expansion of macro 'TONE_PIN2'

       bitClear(TONE_PIN2_PORT, TONE_PIN2);

                                ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:231:30: note: in expansion of macro 'TONE_PIN2'

       bitSet(TONE_PIN2_PORT, TONE_PIN2);

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))

                                                    ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:235:30: note: in expansion of macro 'TONE_PIN2'

     bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low for normal volume

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:250:3: error: 'TCCR3A' was not declared in this scope

   TCCR3A = 0;

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:254:3: error: 'TCCR3B' was not declared in this scope

   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8

   ^

In file included from c:\users\lhw\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

                 from c:\users\lhw\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\pgmspace.h:90,

                 from C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:28,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:254:16: error: 'WGM32' was not declared in this scope

   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8

                ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:254:29: error: 'CS31' was not declared in this scope

   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8

                             ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:256:3: error: 'OCR3A' was not declared in this scope

   OCR3A = ocrValue;

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42:0,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:258:12: error: 'TIMSK3' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 1); // enable the output compare match interrupt

            ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:258:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 1); // enable the output compare match interrupt

   ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:258:20: error: 'OCIE3A' was not declared in this scope

   bitWrite(TIMSK3, OCIE3A, 1); // enable the output compare match interrupt

                    ^

C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

 #define bitSet(value, bit) ((value) |= (1UL << (bit)))

                                                 ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:258:3: note: in expansion of macro 'bitWrite'

   bitWrite(TIMSK3, OCIE3A, 1); // enable the output compare match interrupt

   ^

In file included from c:\users\lhw\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

                 from c:\users\lhw\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\pgmspace.h:90,

                 from C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\cores\arduino/Arduino.h:28,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42,

                 from C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In function 'void TIMER3_COMPA_vect()':

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:132:30: note: in expansion of macro 'TONE_PIN2'

   #define TONE_PIN2_MASK _BV(TONE_PIN2)

                              ^

C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:276:31: note: in expansion of macro 'TONE_PIN2_MASK'

         *(&TONE_PIN2_PORT) ^= TONE_PIN2_MASK; // toggle pin 2

                               ^

使用 5.1.0  版本的库 Arduboy2-master 在文件夹: C:\Program Files (x86)\Arduino\libraries\Arduboy2-master 
使用 2.0  版本的库 EEPROM 在文件夹: C:\Users\LHW\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.20\libraries\EEPROM 
使用 1.0.3  版本的库 ArduboyTones-master 在文件夹: C:\Program Files (x86)\Arduino\libraries\ArduboyTones-master 
exit status 1
为开发板 Arduino/Genuino Uno 编译时出错。

When compiling for Arduboy, you need to make sure that the board is set to “Leonardo”, not “Uno”.

Or ideally compile for Arduboy if memory serves its will reduce compile size a little.

1 Like


I wanted to run it on the NANO, but the ArduboyTones compilation was not successful. Is there any way to make the NANO successful
I tried to remove the sound section, and it worked, but I wanted to have sound

Afaik The audio libs are for the arduboys timers and what nots. But @MasterOfGizmo also ported Arduboytones
https://github.com/harbaum/ArduboyTones

3 Likes

Thanks, it worked! :smiley:

1 Like