dan
New Member
Posts: 4
|
Post by dan on Jun 19, 2015 3:45:44 GMT -8
Dear friends,
I have an Arduino UNO and Gameduino 2 shield.
I tried to run the following sketch:
#include <SD.h>
#include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>
File file;
File image;
void setup() {
if(SD.begin(9))
GD.begin();
file = SD.open("");
}
void loop() {
image = file.openNextFile();
GD.Clear();
GD.cmd_text(150,100,31,OPT_CENTER,image.name());
GD.swap();
}
But the Gameduino 2 does not respond or show any text.
Can anyone tell me what I should do to get this sketch working?
Thank you, Dan.
|
|