It was late reply , sorry
I have tested the various CardInfo.
Sketch after writing , I have successfully displays the serial monitor restart necessary , Once try. In vain are not disconnected once the USB.
So , please check the sketch of the DATA LOGGER.
Thank you as always
I will write the results .
Initializing SD card...
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3644850176
Volume size (Kbytes): 3559424
Volume size (Mbytes): 3476
Files found on the card (name, date and size in bytes):
DATALOG.TXT 2000-01-01 01:00:00 637088
「Leonardo」+「Adafruit Data Logger Shield」Please check the ske
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Can you describe the problem you are seeing now:please check the sketch of the DATA LOGGER.
You are able to read and write to the SD card.
You are able to initialize the RTC.
You are able to print to the serial port;
You have a file "DATALOG.TXT" that is 637088 bytes long.
Is the content of the file OK?
Can you post a sample of the file text?
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Has SD card test · RTC test success . I have the same setting also serial port . To the serial monitor
card initialized.
Setup complete.
Was displayed .
After that , it does not react anything even put a signal . Also analog and digital ports
Are you using a number that does not use the pin number of the sketch .
Please check the sketch .
I do not know the meaning of this .
//You have a file "DATALOG.TXT" that is 637088 bytes long.
card initialized.
Setup complete.
Was displayed .
After that , it does not react anything even put a signal . Also analog and digital ports
Are you using a number that does not use the pin number of the sketch .
Please check the sketch .
I do not know the meaning of this .
//You have a file "DATALOG.TXT" that is 637088 bytes long.
Code: Select all
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h> // Credit: Adafruit
RTC_DS1307 RTC;
#define DPINMAX 16
int Digitalpin [DPINMAX] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17, 18, 19};
int val = 0;// 入力ピンの状態がこの変数(val)に記憶される
int old_val[DPINMAX] = {};// valの前の値を保存しておく変数
int i;
int ChgFlag;
const int chipSelect = 10;// Adafruit のSDシールドは 10
void setup(){
//Initialize serial and wait for port to open:
// This must be done before any other Serial calls!
Serial.begin(9600);
while (!Serial)
{
; // wait for serial port to connect. Needed for Leonardo only
}
{
Serial.println(val); // デバッグ用
}
// see if the card is present and can be initialized:
if (!SD.begin(10, 11, 12, 13)) {//データロガーシールド用スケッチ
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("card initialized.");
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
// uncomment it & upload to set the time, date and start run the RTC!
RTC.adjust(DateTime(__DATE__, __TIME__));
}
Serial.println("Setup complete.");
}
void loop(){
DateTime now = RTC.now();
File dataFile = SD.open("datalog.txt", FILE_WRITE);
{ ChgFlag = 0;/* 変化あったか確認するためのフラグをクリア */
for(i=0;i<DPINMAX;i++) {
val = digitalRead(Digitalpin[i]);
if(val != old_val[i]) {
ChgFlag = 1; /* 前回から変化ありました*/
old_val[i] = val; /* 今回の値に更新します */
}
}
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
for(i=0;i<(sizeof(old_val)/sizeof(int));i++) {
dataFile.print(old_val[i]);
if((i % 4) == 0)
dataFile.print(" ");
}
dataFile.println(); /* 最後に改行追加 */
dataFile.close();
}
}
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
The only output from your program is to the file. Your code writes to the data file when it detects a change. And it looks like data is being written to the file.After that , it does not react anything even put a signal .
That is what was reported by the cardinfo program.I do not know the meaning of this .
//You have a file "DATALOG.TXT" that is 637088 bytes long.
This is the information from your earlier post:
To view this data, install the SD card in your computer and open the file.Initializing SD card...
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3644850176
Volume size (Kbytes): 3559424
Volume size (Mbytes): 3476
Files found on the card (name, date and size in bytes):
DATALOG.TXT 2000-01-01 01:00:00 637088
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
It had written to the SD card .
Time had not been recorded.
It has been recorded in a continuous rather than when there was a change .
0011 1111 1111 1101
0011 1111 1101 0101
0011 1111 1101 1101
0011 1111 1111 1101
0011 1111 1101 0101
0011 1101 1100 0101
0011 0101 0100 0101
0011 1101 1100 0101
0011 1101 0100 0101
It is to write to the serial monitor of the SD test . No TXT to the SD Card
Initializing SD card...
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3644850176
Volume size (Kbytes): 3559424
Volume size (Mbytes): 3476
Files found on the card (name, date and size in bytes):
Time had not been recorded.
It has been recorded in a continuous rather than when there was a change .
0011 1111 1111 1101
0011 1111 1101 0101
0011 1111 1101 1101
0011 1111 1111 1101
0011 1111 1101 0101
0011 1101 1100 0101
0011 0101 0100 0101
0011 1101 1100 0101
0011 1101 0100 0101
It is to write to the serial monitor of the SD test . No TXT to the SD Card
Initializing SD card...
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3644850176
Volume size (Kbytes): 3559424
Volume size (Mbytes): 3476
Files found on the card (name, date and size in bytes):
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Your code does not attempt to write the time or date. See this guide for examples of how to print the time and date: https://learn.adafruit.com/adafruit-dat ... time-clockIt had written to the SD card .
Time had not been recorded.
The example output you post only shows changes.It has been recorded in a continuous rather than when there was a change .
If you want to write to the serial monitor, use "Serial.print()" instead of "dataFile.print()"It is to write to the serial monitor of the SD test . No TXT to the SD Card
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Thank you for letting me know .
I was able PIN information and write time to the SD card .
It is written in a continuous now . Seeking a recording when there is a change
Is it correct PIN number that can be used ?
int Digitalpin [DPINMAX] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17, 18, 19};
Please check the sketch
Please
I was able PIN information and write time to the SD card .
It is written in a continuous now . Seeking a recording when there is a change
Is it correct PIN number that can be used ?
int Digitalpin [DPINMAX] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17, 18, 19};
Please check the sketch
Please
Code: Select all
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h> // Credit: Adafruit
RTC_DS1307 RTC;
#define DPINMAX 16
int Digitalpin [DPINMAX] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17, 18, 19};
int val = 0;// 入力ピンの状態がこの変数(val)に記憶される
int old_val[DPINMAX] = {};// valの前の値を保存しておく変数
int i;
int ChgFlag;
const int chipSelect = 10;// Adafruit のSDシールドは 10
void setup(){
//Initialize serial and wait for port to open:
// This must be done before any other Serial calls!
Serial.begin(9600);
{
; // wait for serial port to connect. Needed for Leonardo only
}
{
}
// see if the card is present and can be initialized:
if (!SD.begin(10, 11, 12, 13)) {//データロガーシールド用スケッチ
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("card initialized.");
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
// uncomment it & upload to set the time, date and start run the RTC!
RTC.adjust(DateTime(__DATE__, __TIME__));
}
Serial.println("Setup complete.");
}
void loop(){
DateTime now = RTC.now();
File dataFile = SD.open("datalog.txt", FILE_WRITE);
ChgFlag = 0;/* 変化あったか確認するためのフラグをクリア */
for(i=0;i<DPINMAX;i++) {
val = digitalRead(Digitalpin[i]);
if(val != old_val[i]) {
ChgFlag = 1; /* 前回から変化ありました*/
old_val[i] = val; /* 今回の値に更新します */
}
}
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
dataFile.print(now.year(), DEC);
dataFile.print('/');
dataFile.print(now.month(), DEC);
dataFile.print('/');
dataFile.print(now.day(), DEC);
dataFile.print(" , ");
dataFile.print(now.hour(), DEC);
dataFile.print(':');
dataFile.print(now.minute(), DEC);
dataFile.print(':');
dataFile.print(now.second(), DEC);
dataFile.print(" , ");
for(i=0;i<(sizeof(old_val)/sizeof(int));i++) {
dataFile.print(old_val[i]);
if((i % 4) == 3)
dataFile.print(" ");
}
dataFile.println(); /* 最後に改行追加 */
dataFile.close();
}
- Attachments
-
- DATALOG.TXT
- (8.31 KiB) Downloaded 29 times
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Notice that when there is a change, the year does not print.
That is because the scope of your 'if' only covers the following code.
To control the rest of your printing, you need to define the scope of the 'if' with braces '{' and '}' as follows:
Code: Select all
/10/24 , 15:21:52 , 0011 0101 1000 0101
2014/10/24 , 15:21:52 , 0011 0101 1100 0101
/10/24 , 15:21:52 , 0011 0101 1100 0101
2014/10/24 , 15:21:52 , 0011 0101 1101 0101
Code: Select all
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
dataFile.print(now.year(), DEC);
Code: Select all
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
{
dataFile.print(now.year(), DEC);
dataFile.print('/');
dataFile.print(now.month(), DEC);
dataFile.print('/');
dataFile.print(now.day(), DEC);
dataFile.print(" , ");
dataFile.print(now.hour(), DEC);
dataFile.print(':');
dataFile.print(now.minute(), DEC);
dataFile.print(':');
dataFile.print(now.second(), DEC);
dataFile.print(" , ");
for(i=0;i<(sizeof(old_val)/sizeof(int));i++)
{
dataFile.print(old_val[i]);
if((i % 4) == 3)
dataFile.print(" ");
}
dataFile.println(); /* 最後に改行追加 */
dataFile.close();
}
}
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Year has been recorded in all . Thank you.
However , nothing button (not sending a signal ) to and are recorded about 20 times per second .
was placed in the delay at the end of the place but it was useless .
Please
However , nothing button (not sending a signal ) to and are recorded about 20 times per second .
was placed in the delay at the end of the place but it was useless .
Please
Code: Select all
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h> // Credit: Adafruit
RTC_DS1307 RTC;
#define DPINMAX 16
int Digitalpin [DPINMAX] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16, 17, 18, 19};
int val = 0;// 入力ピンの状態がこの変数(val)に記憶される
int old_val[DPINMAX] = {};// valの前の値を保存しておく変数
int i;
int ChgFlag;
const int chipSelect = 10;// Adafruit のSDシールドは 10
void setup(){
//Initialize serial and wait for port to open:
// This must be done before any other Serial calls!
Serial.begin(9600);
{
; // wait for serial port to connect. Needed for Leonardo only
}
{
}
// see if the card is present and can be initialized:
if (!SD.begin(10, 11, 12, 13)) {//データロガーシールド用スケッチ
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("card initialized.");
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
// uncomment it & upload to set the time, date and start run the RTC!
RTC.adjust(DateTime(__DATE__, __TIME__));
}
Serial.println("Setup complete.");
}
void loop(){
DateTime now = RTC.now();
File dataFile = SD.open("datalog.txt", FILE_WRITE);
ChgFlag = 0;/* 変化あったか確認するためのフラグをクリア */
for(i=0;i<DPINMAX;i++) {
val = digitalRead(Digitalpin[i]);
if(val != old_val[i]) {
ChgFlag = 1; /* 前回から変化ありました*/
old_val[i] = val; /* 今回の値に更新します */
}
}
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
{
dataFile.print(now.year(), DEC);
dataFile.print('/');
dataFile.print(now.month(), DEC);
dataFile.print('/');
dataFile.print(now.day(), DEC);
dataFile.print(" , ");
dataFile.print(now.hour(), DEC);
dataFile.print(':');
dataFile.print(now.minute(), DEC);
dataFile.print(':');
dataFile.print(now.second(), DEC);
dataFile.print(" , ");
for(i=0;i<(sizeof(old_val)/sizeof(int));i++)
{
dataFile.print(old_val[i]);
if((i % 4) == 3)
dataFile.print(" ");
}
dataFile.println(); /* 最後に改行追加 */
dataFile.close();
}
}
- Attachments
-
- DATALOG.TXT
- (26.29 KiB) Downloaded 27 times
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Was tested by reducing the number of PIN.
Nothing is no longer responding .
The modified sketch this
Here is okay ?
It is written twice , sorry
Please
Nothing is no longer responding .
The modified sketch this
Code: Select all
#define DPINMAX 4
int Digitalpin [DPINMAX] = {6, 7, 8, 9};
Code: Select all
int val = 0; // input pin of the state is stored in this variable (val)
int old_val [DPINMAX] = {}; // variable you want to save the previous value of val
int i;
int ChgFlag;
Please
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
But your output is showing change. Every line has some change from the previous line.However , nothing button (not sending a signal ) to and are recorded about 20 times per second .
The empty initializer for old_val is not necessary. It can be just:Here is okay ?
.
int val = 0; // input pin of the state is stored in this variable (val)
int old_val [DPINMAX] = {}; // variable you want to save the previous value of val
Code: Select all
int old_val [DPINMAX];
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
I check in 4 strains of clarity or sketch is correct
The text on the SD card is there but not written anything
As instructed
int old_val [DPINMAX]
Were to but error occurred .
This report would have more information with
"Show verbose output during compilation"
enabled in File> Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Leonardo"
Datalogger_TIME_osiete6FTR1D_4ch_test: 12: error: expected initializer before 'int'
Datalogger_TIME_osiete6FTR1D_4ch_test.ino: In function 'void loop ()':
Datalogger_TIME_osiete6FTR1D_4ch_test: 47: error: 'i' was not declared in this scope
Datalogger_TIME_osiete6FTR1D_4ch_test: 49: error: 'old_val' was not declared in this scope
Datalogger_TIME_osiete6FTR1D_4ch_test: 68: error: 'old_val' was not declared in this scope
This is it an error does not occur .
int old_val[DPINMAX];
But , this is correct?
The text on the SD card is there but not written anything
As instructed
int old_val [DPINMAX]
Were to but error occurred .
This report would have more information with
"Show verbose output during compilation"
enabled in File> Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Leonardo"
Datalogger_TIME_osiete6FTR1D_4ch_test: 12: error: expected initializer before 'int'
Datalogger_TIME_osiete6FTR1D_4ch_test.ino: In function 'void loop ()':
Datalogger_TIME_osiete6FTR1D_4ch_test: 47: error: 'i' was not declared in this scope
Datalogger_TIME_osiete6FTR1D_4ch_test: 49: error: 'old_val' was not declared in this scope
Datalogger_TIME_osiete6FTR1D_4ch_test: 68: error: 'old_val' was not declared in this scope
Code: Select all
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h> // Credit: Adafruit
RTC_DS1307 RTC;
#define DPINMAX 4
int Digitalpin [DPINMAX] = { 6, 7, 8, 9};
int val = 0;// 入力ピンの状態がこの変数(val)に記憶される
int old_val[DPINMAX]// valの前の値を保存しておく変数
int i;
int ChgFlag;
const int chipSelect = 10;// Adafruit のSDシールドは 10
void setup(){
//Initialize serial and wait for port to open:
// This must be done before any other Serial calls!
Serial.begin(9600);
{
; // wait for serial port to connect. Needed for Leonardo only
}
// see if the card is present and can be initialized:
if (!SD.begin(10, 11, 12, 13)) {//データロガーシールド用スケッチ
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("card initialized.");
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
// uncomment it & upload to set the time, date and start run the RTC!
RTC.adjust(DateTime(__DATE__, __TIME__));
}
Serial.println("Setup complete.");
}
void loop(){
DateTime now = RTC.now();
File dataFile = SD.open("datalog.txt", FILE_WRITE);
ChgFlag = 0;/* 変化あったか確認するためのフラグをクリア */
for(i=0;i<DPINMAX;i++) {
val = digitalRead(Digitalpin[i]);
if(val != old_val[i]) {
ChgFlag = 1; /* 前回から変化ありました*/
old_val[i] = val; /* 今回の値に更新します */
}
}
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
{
dataFile.print(now.year(), DEC);
dataFile.print('/');
dataFile.print(now.month(), DEC);
dataFile.print('/');
dataFile.print(now.day(), DEC);
dataFile.print(" , ");
dataFile.print(now.hour(), DEC);
dataFile.print(':');
dataFile.print(now.minute(), DEC);
dataFile.print(':');
dataFile.print(now.second(), DEC);
dataFile.print(" , ");
for(i=0;i<(sizeof(old_val)/sizeof(int));i++)
{
dataFile.print(old_val[i]);
if((i % 4) == 3)
dataFile.print(" ");
}
dataFile.println(); /* 最後に改行追加 */
dataFile.close();
delay(10);
}
}
int old_val[DPINMAX];
But , this is correct?
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
Can not use digital 10.11.12.13 analog 4.5 in Leonardo .
14 pin can be used only .
16 pin use ?
Please
14 pin can be used only .
16 pin use ?
Please
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
I don't understand what you mean by this.I check in 4 strains of clarity or sketch is correct
The text on the SD card is there but not written anything
Yes. the semicolon ';' is required.int old_val[DPINMAX];
But , this is correct?
- FROMJAPAN
- Posts: 35
- Joined: Thu Sep 11, 2014 4:15 am
Re: 「Leonardo」+「Adafruit Data Logger Shield」Please check the
PIN that can not be used in Leonardo is there .
D10 · D11 · D12 · D13 ( for SD card )
A4 · A5 ( for RTC)
Successful Once you test using in -use PIN 16.
Were stable and you put a resistor of 10KΩ between PIN and GND.
However , state of D2 · D3 is always " 1 " . Change and be replaced the cable is not .
Do not use the D2 · D3
D10 · D11 · D12 · D13 ( for SD card )
A4 · A5 ( for RTC)
Successful Once you test using in -use PIN 16.
Were stable and you put a resistor of 10KΩ between PIN and GND.
However , state of D2 · D3 is always " 1 " . Change and be replaced the cable is not .
Do not use the D2 · D3
Code: Select all
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h> // Credit: Adafruit
RTC_DS1307 RTC;
#define DPINMAX 16
int Digitalpin [DPINMAX] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 18, 19, 20, 21};
int val = 0;// 入力ピンの状態がこの変数(val)に記憶される
int old_val[DPINMAX];// valの前の値を保存しておく変数
int i;
int ChgFlag;
const int chipSelect = 10;// Adafruit のSDシールドは 10
void setup(){
//Initialize serial and wait for port to open:
// This must be done before any other Serial calls!
Serial.begin(9600);
// while (!Serial)
{
; // wait for serial port to connect. Needed for Leonardo only
}
// see if the card is present and can be initialized:
if (!SD.begin(10, 11, 12, 13)) {//データロガーシールド用スケッチ
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("card initialized.");
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
// uncomment it & upload to set the time, date and start run the RTC!
RTC.adjust(DateTime(__DATE__, __TIME__));
}
Serial.println("Setup complete.");
}
void loop(){
DateTime now = RTC.now();
File dataFile = SD.open("datalog.txt", FILE_WRITE);
ChgFlag = 0;/* 変化あったか確認するためのフラグをクリア */
for(i=0;i<DPINMAX;i++) {
val = digitalRead(Digitalpin[i]);
if(val != old_val[i]) {
ChgFlag = 1; /* 前回から変化ありました*/
old_val[i] = val; /* 今回の値に更新します */
}
}
if(ChgFlag != 0) /* 変化あったらからSDに書き出すよ~ */
{
dataFile.print(now.year(), DEC);
dataFile.print('/');
dataFile.print(now.month(), DEC);
dataFile.print('/');
dataFile.print(now.day(), DEC);
dataFile.print(" , ");
dataFile.print(now.hour(), DEC);
dataFile.print(':');
dataFile.print(now.minute(), DEC);
dataFile.print(':');
dataFile.print(now.second(), DEC);
dataFile.print(" , ");
for(i=0;i<(sizeof(old_val)/sizeof(int));i++)
{
dataFile.print(old_val[i]);
if((i % 4) == 3)
dataFile.print(" ");
}
dataFile.println(); /* 最後に改行追加 */
dataFile.close();
}
delay(2000);
}
- Attachments
-
- DATALOG.TXT
- (3.06 KiB) Downloaded 29 times
Please be positive and constructive with your questions and comments.