Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years ago. This question has been closed. Reason: Duplicate question
Move to the right column
Hello to everyone. I have my little problems. I can not save data to the SD card.
I want to record the left side to the right. not from top to bottom.
M y code
SDFileSystem sd(p5, p6, p7, p8, "sd"); the pinout on the mbed Cool Components workshop board int b=15; int a=20;
int main() {
mkdir("/sd/Sistem", 0777);
FILE *fp = fopen("/sd/Sistem/canbus.csv", "w"); if(fp == NULL) { error("Could not open file for write\n"); }
fprintf(fp, "%d%d \n",a,b);
fprintf(fp, "aaaaaaaaaaaaaaaaaaa");
fclose(fp); }