Tue Mar 31, 2015 6:31 am
Tue Mar 31, 2015 4:29 pm
Tue Mar 31, 2015 5:01 pm
rodot wrote:I can't tell about the garbage file it creates, but about your EDIT2 yeah I did that to make sure /0 is the end of the file. Probably far from the best solutions but is was quick to implement, it's pretty simple so it doesn't eat to much flash and the eeprom loading/saving is pretty quick anyway.
Wed Apr 01, 2015 7:44 pm
Thu Apr 02, 2015 12:15 am
Thu Apr 02, 2015 9:40 am
Thu Apr 02, 2015 12:23 pm
res=file.openFile("SPINSPIN.SAV", FILEMODE_TEXT_WRITE);
if (res==NO_ERROR)
{
for(byte i=0; i< 1024/BUFFER_SIZE; i++){
buffer[BUFFER_SIZE+1] = '\0';
for(byte j = 0; j<BUFFER_SIZE; j+=2){
byte b = EEPROM.read((i*BUFFER_SIZE+j)/2);
//buffer[j] = 0x0F | b;
//buffer[j+1] = 0xF0 | b;
buffer[j] = 0xFF;
buffer[j+1] = 0xFF;
}
file.writeLn("asdfasdf");
}
file.closeFile();
gb.display.print(completeName);
gb.display.println(F(" saved"));
gb.display.update();
}
else{
gb.display.println(F("Error"));
gb.display.update();
}
drwxr-xr-x 0 sorunome sorunome 0 Feb 1 2107 asdf??as.dfa
d????????? ? ? ? ? ? asdfasdf.??a
-rw-r--r-- 1 sorunome sorunome 1717859169 Mar 4 2031 dfasdf??.asd
Thu Apr 02, 2015 5:22 pm
Thu Apr 02, 2015 5:56 pm
rodot wrote:So it doesn't come from the Gamebuino Library then... can you try with a different operating system ? A different micro SD card ?
Thu Apr 02, 2015 6:51 pm