arduino + camera + sd memory card

Great work !
My problem is that I want to use the C328R camera together with the S65 Shield from Watterott. (which has a micro sd slot included)
The demo included to write to the card is the following:

void write_something(void)
{
  FIL fdst;     //file objects
  FRESULT res;  //result code
  UINT wr;      //file R/W count
  char data[16];

  res = f_open(&fdst, "xxx.txt", FA_CREATE_ALWAYS | FA_WRITE);
  if(res == FR_OK)
  {
    strcpy(data, "test 123");
    res = f_write(&fdst, data, strlen(data), &wr);
    f_close(&fdst);
  }
}

How can I implement this code into your one in the first post ?
Thanks for any help :slight_smile: