Arduboytones library for arduboy2 doesn't work [Solved]

I keep getting this error whenever I try to upload the tonestest sketch on my custom I2C arduino nano arduboy console. I tried the breakout game, which worked perfectly fine, and I tried the beep demo which also worked with my buzzer configuration. However when trying to play other games that use the arduboytones library I get error messages

In file included from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:42:0,
                 from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:39:
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In constructor 'ArduboyTones::ArduboyTones(boolean (*)())':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:68:28: note: in expansion of macro 'TONE_PIN2'
   bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low
                            ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:68:28: note: in expansion of macro 'TONE_PIN2'
   bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low
                            ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t)':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:12: note: suggested alternative: 'TIMSK0'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:20: error: 'OCIE3A' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:20: note: suggested alternative: 'OCIE0A'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:75:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t, uint16_t, uint16_t)':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:12: note: suggested alternative: 'TIMSK0'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:20: error: 'OCIE3A' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:20: note: suggested alternative: 'OCIE0A'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:87:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t)':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:12: note: suggested alternative: 'TIMSK0'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:20: error: 'OCIE3A' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:20: note: suggested alternative: 'OCIE0A'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:102:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::tones(const uint16_t*)':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:12: note: suggested alternative: 'TIMSK0'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:20: error: 'OCIE3A' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:20: note: suggested alternative: 'OCIE0A'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:117:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::tonesInRAM(uint16_t*)':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:12: note: suggested alternative: 'TIMSK0'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:20: error: 'OCIE3A' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:20: note: suggested alternative: 'OCIE0A'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:125:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::noTone()':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:12: note: suggested alternative: 'TIMSK0'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                              ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:20: error: 'OCIE3A' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:20: note: suggested alternative: 'OCIE0A'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
                    ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:133:3: note: in expansion of macro 'bitWrite'
   bitWrite(TIMSK3, OCIE3A, 0); // disable the output compare match interrupt
   ^~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:134:3: error: 'TCCR3B' was not declared in this scope
   TCCR3B = 0; // stop the counter
   ^~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:134:3: note: suggested alternative: 'TCCR0B'
   TCCR3B = 0; // stop the counter
   ^~~~~~
   TCCR0B
In file included from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:42:0,
                 from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:39:
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:137:28: note: in expansion of macro 'TONE_PIN2'
   bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low
                            ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:137:28: note: in expansion of macro 'TONE_PIN2'
   bitClear(TONE_PIN2_PORT, TONE_PIN2); // set pin 2 low
                            ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp: In static member function 'static void ArduboyTones::nextTone()':
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:228:32: note: in expansion of macro 'TONE_PIN2'
       bitClear(TONE_PIN2_PORT, TONE_PIN2);
                                ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:228:32: note: in expansion of macro 'TONE_PIN2'
       bitClear(TONE_PIN2_PORT, TONE_PIN2);
                                ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:231:30: note: in expansion of macro 'TONE_PIN2'
       bitSet(TONE_PIN2_PORT, TONE_PIN2);
                              ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
 #define bitSet(value, bit) ((value) |= (1UL << (bit)))
                                                 ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:231:30: note: in expansion of macro 'TONE_PIN2'
       bitSet(TONE_PIN2_PORT, TONE_PIN2);
                              ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/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
                              ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'
   #define TONE_PIN2 PORTC7
                     ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'
 #define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
                                                    ^~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/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
                              ^~~~~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:250:3: error: 'TCCR3A' was not declared in this scope
   TCCR3A = 0;
   ^~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:250:3: note: suggested alternative: 'TCCR0A'
   TCCR3A = 0;
   ^~~~~~
   TCCR0A
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:254:3: error: 'TCCR3B' was not declared in this scope
   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8
   ^~~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:254:3: note: suggested alternative: 'TCCR0B'
   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8
   ^~~~~~
   TCCR0B
In file included from /private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
                 from /private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
                 from /private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
                 from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:42,
                 from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:39:
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:254:16: error: 'WGM32' was not declared in this scope
   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8
                ^
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:254:16: note: suggested alternative: 'WGM12'
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:254:29: error: 'CS31' was not declared in this scope
   TCCR3B = _BV(WGM32) | _BV(CS31); // CTC mode, prescaler /8
                             ^
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:254:29: note: suggested alternative: 'CS01'
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:256:3: error: 'OCR3A' was not declared in this scope
   OCR3A = ocrValue;
   ^~~~~
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:256:3: note: suggested alternative: 'OCR2A'
   OCR3A = ocrValue;
   ^~~~~
   OCR2A
In file included from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.h:42:0,
                 from /Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:39:
/Users/varun/Documents/Arduino/libraries/ArduboyTones/src/ArduboyTones.cpp:258:12: error: 'TIMSK3' was not declared in this scope
   bitWrite(TIMSK3, OCIE3A, 1); // enable the output compare match interrupt
            ^
/private/var/folders/sf/87pmtntx36j3gdysk4v0124w0000gn/T/AppTranslocation/D3172334-07DB-4EDF-B5A1-1611441B9D4E/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino

exit status 1
Error compiling for board Arduino Nano.

Any advice would be helpful. Thank you for reading.

The Arduino Nano uses the ATmega328 microcontroller, which has different timers and other built in peripherals than the ATmega32U4 used by the Arduboy. You will need to use a modified version of the ArduboyTones library and any other libraries that directly interface with incompatible peripherals.

If you are using this port of the Arduboy2 library, the matching ArduboyTones library is here.

3 Likes

dude thank you. You are a life saver.