Help! Clone Arduino Nano Arduboy Compiling Error :(

I builded Arduboy on Arduino Nano + I²C-Display its works only with arduboy2 library examples. when I tried to upload another game it will gives error. I dowloaded all libraries for arduboy with ardunio ide but ı still cant upload any game. I tried hex file upload. this didn’t work like the others . Please help me what should I do ?

Error message:

 Arduino: 1.8.10 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

In file included from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42:0,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In constructor 'ArduboyTones::ArduboyTones(boolean (*)())':

C:\Users\Veli �zt�rk\Documents\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\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'

   #define TONE_PIN2 PORTC7

                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t)':

C:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:75:12: note: suggested alternative: 'TIMSK0'

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

            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:75:20: note: suggested alternative: 'OCIE0A'

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



C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tone(uint16_t, uint16_t, uint16_t, uint16_t)':

C:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:102:12: note: suggested alternative: 'TIMSK0'

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

            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:102:20: note: suggested alternative: 'OCIE0A'

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

                    ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tones(const uint16_t*)':

C:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:117:12: note: suggested alternative: 'TIMSK0'

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

            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:117:20: note: suggested alternative: 'OCIE0A'

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

                    ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::tonesInRAM(uint16_t*)':

C:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:125:12: note: suggested alternative: 'TIMSK0'

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

            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:125:20: note: suggested alternative: 'OCIE0A'

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

                    ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::noTone()':

C:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:133:12: note: suggested alternative: 'TIMSK0'

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

            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:133:20: note: suggested alternative: 'OCIE0A'

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

                    ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:134:3: error: 'TCCR3B' was not declared in this scope

   TCCR3B = 0; // stop the counter

   ^~~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:134:3: note: suggested alternative: 'TCCR0B'

   TCCR3B = 0; // stop the counter

   ^~~~~~

   TCCR0B

In file included from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42:0,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Users\Veli �zt�rk\Documents\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\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'

   #define TONE_PIN2 PORTC7

                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In static member function 'static void ArduboyTones::nextTone()':

C:\Users\Veli �zt�rk\Documents\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\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:228:32: note: in expansion of macro 'TONE_PIN2'

       bitClear(TONE_PIN2_PORT, TONE_PIN2);

                                ^~~~~~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'

   #define TONE_PIN2 PORTC7

                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:228:32: note: in expansion of macro 'TONE_PIN2'

       bitClear(TONE_PIN2_PORT, TONE_PIN2);

                                ^~~~~~~~~

C:\Users\Veli �zt�rk\Documents\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\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:231:30: note: in expansion of macro 'TONE_PIN2'

       bitSet(TONE_PIN2_PORT, TONE_PIN2);

                              ^~~~~~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'

   #define TONE_PIN2 PORTC7

                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:231:30: note: in expansion of macro 'TONE_PIN2'

       bitSet(TONE_PIN2_PORT, TONE_PIN2);

                              ^~~~~~~~~

C:\Users\Veli �zt�rk\Documents\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\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'

   #define TONE_PIN2 PORTC7

                     ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:113:52: note: in definition of macro 'bitClear'

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

                                                    ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:250:3: error: 'TCCR3A' was not declared in this scope

   TCCR3A = 0;

   ^~~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:250:3: note: suggested alternative: 'TCCR0A'

   TCCR3A = 0;

   ^~~~~~

   TCCR0A

C:\Users\Veli �zt�rk\Documents\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

   ^~~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:254:3: note: suggested alternative: 'TCCR0B'

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

   ^~~~~~

   TCCR0B

In file included from c:\users\veli �zt�rk\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,

                 from c:\users\veli �zt�rk\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:254:16: note: suggested alternative: 'WGM12'

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:254:29: note: suggested alternative: 'CS01'

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:256:3: error: 'OCR3A' was not declared in this scope

   OCR3A = ocrValue;

   ^~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:256:3: note: suggested alternative: 'OCR2A'

   OCR3A = ocrValue;

   ^~~~~

   OCR2A

In file included from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42:0,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:258:12: note: suggested alternative: 'TIMSK0'

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

            ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'

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

                              ^~~~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:258:20: note: suggested alternative: 'OCIE0A'

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

                    ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'

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

                                                 ^~~

C:\Users\Veli �zt�rk\Documents\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

   ^~~~~~~~

Multiple libraries were found for "ArduboyTones.h"
 Used: C:\Users\Veli
Multiple libraries were found for "Arduboy2.h"
 Used: C:\Program
In file included from c:\users\veli �zt�rk\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,

Multiple libraries were found for "EEPROM.h"
 Used: C:\Program
                 from c:\users\veli �zt�rk\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,

                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:42,

                 from C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp:39:

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.cpp: In function 'void TIMER3_COMPA_vect()':

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: error: 'PORTC7' was not declared in this scope

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:132:30: note: in expansion of macro 'TONE_PIN2'

   #define TONE_PIN2_MASK _BV(TONE_PIN2)

                              ^~~~~~~~~

C:\Users\Veli �zt�rk\Documents\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

                               ^~~~~~~~~~~~~~

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:131:21: note: suggested alternative: 'PORTB7'

   #define TONE_PIN2 PORTC7

                     ^

C:\Users\Veli �zt�rk\Documents\Arduino\libraries\ArduboyTones-master\src\ArduboyTones.h:132:30: note: in expansion of macro 'TONE_PIN2'

   #define TONE_PIN2_MASK _BV(TONE_PIN2)

                              ^~~~~~~~~

C:\Users\Veli �zt�rk\Documents\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

                               ^~~~~~~~~~~~~~

exit status 1
Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


This is ardubreakout game in the library arduboy2. Only this is work on the clone arduboy. How can I upload different games. I am trying to since saturday please help me .

Are you trying to use the default Arduboy2 library or Mr. Blinky’s version?
It looks like you’re trying to use the regular version of Arduboy2,
which doesn’t support ATmega328P or I2C-based screens.

I’m not sure an Arduino Nano-based board will work because it has an ATmega328P chip and the Arduboy runs on an ATmega32u4 chip.

Even if you get the library to compile peroperly it won’t work for all games because the ATmega328P only has 2KB of RAM (compared to the ATmega32u4’s 2.5KB) and some games use more than 2KB of RAM.

1 Like

Im not sure which library Im using. Some versions of Arduboy2 libraries given error for compiling. I find one working library and ım using it. I know it doesnt support but somebodies build it and some games working on it. How can ı find modified libraries? Im have been searching since saturday but ı cant find any usefull thing. I tried every possible way ı find. There is any solution?
This is My school project if this is work in short time that is enough for by now. I Will change systems after it. Because ı love retro games. But ı must do it in short time so ı write here.
Thank you for replying me.

You’ll need the library and wiring from here

Nano i2c

I’m not sure if Mr Blinky has included this with his packages.

1 Like