Pages: [1]   Go Down
Author Topic: Loading Config file from SD  (Read 645 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to ask if someone can help me , i would like to load a simple configuration txt file to the arduino from sd
inside the file there it will be like below.

Timer 1 = ON
Timer 2 = OFF
Timer 3 = OFF

I just want to load the timer name and the ON / OFF status than update accordingly

I am using library   #include <SD.h>


thanks in advance
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5833
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I use the SD card to hold my ethernet shield network setup. Maybe that will give you some ideas.
http://forum.arduino.cc/index.php?topic=128763.msg976118#msg976118
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Tim

but in my case it does not work since cannot accept a description to the parameter

thanks
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
it does not work
What doesn't work? The code you didn't post? The SD card you didn't post a link to? The SD reader you didn't post a link to?
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5833
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Didn't you notice how I used sscanf to split up the character arrays? Change that to meet your requirements. I'm not going to do all your work without some type of financial reward.  smiley-wink
Logged

Pages: [1]   Go Up
Jump to: