I am pretty new to the Arduino so be a little patient if the question has been asked may times. I have looked thru many pages but were unable to find an answer to my question.
I have a datalogger made up which saves data to an SD card.It works fine in its basic form. Now I have a sketch that can read data from the SD card and output it to a terminal program which saves the data to a txt file on the computer.
What I want to do is start basically merging them into one. I was thinking of using a switch as sort of a mode switch so that Serial is not enabled all the time just sitting there waiting for a command from a terminal program.
Would it be easier to make the 2 programs into like 2 separate functions and the loop basically directed which to use depending on the mode switch.
Or would there be a better way?? Any help would be appreciated.
Thanks in advance.