Program Gamebuino with load_game
Posted: Sat Aug 09, 2014 12:48 pm
Why it doesn' t work ?
- Code: Select all
#define load_game (*((void(*)(const char* filename))(0x7ffc/2)))
void setup() {
Serial.begin(9600);
Serial.println("Send a char to start...");
char name[]="BLINK";
}
void loop() {
if (Serial.available()) {
Serial.read();
load_game(name);
}
}