I have connected my GameDuino to a Arduino Uno Wifi.
I receive the following error message when compiling the code, eg. HelloWorld, for the Arduino Uno Wifi architecture.
How can I solve this issue?
insert code hereIn file included from /Users/tom.ghelen/Documents/Arduino/libraries/Gameduino2/1.Basics/helloworld/helloworld.ino:3:0: /Users/tom.ghelen/Documents/Arduino/libraries/Gameduino2/GD2.h: In member function 'void sdcard::begin(byte)': /Users/tom.ghelen/Documents/Arduino/libraries/Gameduino2/GD2.h:17:14: error: 'SPSR0' was not declared in this scope #define SPSR SPSR0 ^ /Users/tom.ghelen/Documents/Arduino/libraries/Gameduino2/GD2.h:303:5: note: in expansion of macro 'SPSR' SPSR = (1 << SPI2X); ^ In file included from /Users/tom.ghelen/Documents/Arduino/libraries/Gameduino2/1.Basics/helloworld/helloworld.ino:3:0: /Users/tom.ghelen/Documents/Arduino/libraries/Gameduino2/GD2.h:303:18: error: 'SPI2X' was not declared in this scope SPSR = (1 << SPI2X); ^ Multiple libraries were found for "EEPROM.h" Used: /Users/tom.ghelen/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/libraries/EEPROM Not used: /Users/tom.ghelen/Documents/Arduino/libraries/arduino-NVM exit status 1 Error compiling for board Arduino Uno WiFi Rev2.
It is a Gameduino 3. It works fine with JPGs on the Arduino Uno. Same code, without JPGs as backgrounds works fine on the Arduino WiFi Rev 2. Similar code with JPGs slows down. Seems to bee something with the clock. Might this be something that needs to be updated in the library?