Pages: [1]   Go Down
Author Topic: ds1307new syntax  (Read 387 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-zipper hello there..
i try to write in a simple ligne in my file the time and date . so
i use this sequence :

Code:
RTC.getTime();
        myFile.println(RTC.hour, DEC);
myFile.println(RTC.minute, DEC);
        myFile.println(RTC.second, DEC);
again for the date.... smiley-fat

but what i want is to write time and date only in one line like"myFile.println(RTC.time and date, DEC)";
do u think it's possible...what sequence void must i use ?? smiley-eek
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2278
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

println() adds a newline at the end of your text. print() does not.

Mark
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1018
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use a part of the example here : http://playground.arduino.cc/Code/time
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-mr-green ok it's realy works....

(so simple for u !!!)

thanks to every one..
best..
Logged

Pages: [1]   Go Up
Jump to: