Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
查看: 1896|回復: 2
打印 上一主題 下一主題

Arduino image SD Ethernet 問題

[複製鏈接]
跳轉到指定樓層
1#
發表於 2014-5-6 10:02:37 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
本帖最後由 bye30 於 2014-5-6 18:13 編輯

請問一下各位先進
SD照片只能存到512張 會是哪裡出問題呢?

以下是原版程式碼 該如何更改呢??
char filename[13];
  strcpy(filename, "IMAGE00.JPG");
  for (int i = 0; i < 100; i++) {
    filename[5] = '0' + i/10;
    filename[6] = '0' + i%10;
    // create if does not exist, do not open existing, write, sync after write
    if (! SD.exists(filename)) {
      break;


另外想把照片透過網路送到指定ip
指令有哪些可以參考呢?

感謝各位⋯
2#
發表於 2014-5-8 03:29:49 | 只看該作者
回復 1# bye30


   try this code:
for (uint8_t i = 0; i < 100; i++) {

    filename[5] = i/10 + '0';

    filename[6] = i%10 + '0';
3#
發表於 2014-5-8 04:12:10 | 只看該作者
本帖最後由 vegewell 於 2014-5-8 04:21 編輯

The SD library uses a static 512 byte buffer for the data. It is flushed when it gets full.同一序列的檔案名只能一次到512,
要多存就換檔名再存after flushed  buffer,
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-9-30 17:30 , Processed in 0.407102 second(s), 8 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表