050813 lab 5 report


Part A.

a. With the smaller font, what is the longest message you can write across one line of the display? How many lines can you write?

14 characters, upto 5 lines.

a. Upload a photo of your personal logo, shown on your LCD screen, to your Lab 5 page.

Part B.

a. Include the code that you had to insert to do this in your lab writeup.

 

if (dataFile) {

     while (dataFile.available()) {

          Serial.write(dataFile.read());

     }

     dataFile.println("He who must not be named!");

     dataFile.close();

} else {

     Serial.println("error opening datalog.txt");

}

 

b. Explain what would you do differently (or show us your code!) to insert the same text string, but at the beginning of the file (without over-writing the current contents).

a. Post your codea.

a. Tell us what you had to change to make this work.

 

Part C.