I think #define ARDUBOY would have to go in Gamebuino.h or somewhere else in the library itself. #defines in sketch .ino files aren’t passed to the libraries.
Hi @inajob - just stumbled upon this thread - I have both Arduboy and Gamebuino - to clarify, in order to test your library, I would just take a Gamebuino game and use your library with my Arduboy as the target?
I don’t use Arduino but use pure Atmega328.
Because this is cheaper solution.
Atmega328 is part of arduino nano.
(arduino micro and Arduboy use Atmega32u4, but many instructions are same. I modify some instructions and re-compile game for Atmega328)
and I use Gamebuino’s bootloader.
This bootloader loads hex binary from SD card, and burn to Atmega328 (usually arduino use serial for burn hex binary.)
This feature is not only for Gamebuino, but other products.
This bootloader also behave arduino. so you can burn program from Arduino IDE with serial.
Loading from an SD card would require lots of hacks to get to work. I’m gonna try and do a demo in a bit what it would take and make some instructions. You’d have to solder wires directly to a micro-sd card and to test pins on the back. It should just fit behind the back cover.