Mac Lobdell / Mbed 2 deprecated testSerialDisplay

Dependencies:   mbed

Revision:
1:3eabffe99403
Parent:
0:7c02f96b0f96
--- a/main.cpp	Thu Jan 07 20:06:36 2016 +0000
+++ b/main.cpp	Fri Aug 12 15:13:28 2016 +0000
@@ -1,5 +1,8 @@
 #include "mbed.h"
 
+#define LOLSHIELDSERIALDISPLAY 0
+#define SFSERIALDISPLAY  1
+
 int display(char* buffer);
 
 DigitalOut myled(LED1);
@@ -13,15 +16,20 @@
    
     lcd.baud(9600);  //default
 
-   /* LOLShield only handles upper case and doesn't handle ? */
+#if LOLSHIELDSERIALDISPLAY
+   /* Serial Interface to Arduino R3 w/ firmware to drive LOLShield*/
+   /* LOLShield library only handles upper case and doesn't handle ? */
 
-//    sprintf(buffer, " HOLA MUNDO, WHATS UP      \n");
+    sprintf(buffer, " HOLA MUNDO, WHATS UP      \n");
     
-//    lcd.printf(buffer);
+    lcd.printf(buffer);
+#endif
+
+#if SFSERIALDISPLAY
 
 /*test of spark fun serial display */
 
-/* you can move the cursor dumb ass!!*/
+/* you can move the cursor!*/
 /* https://www.sparkfun.com/tutorials/246 */
 
    //turn on the display
@@ -46,7 +54,7 @@
 
    lcd.sendbyte(254); //send special character to change cursor location 
    lcd.sendbyte(1);// send special character to clear display
-
+#endif
 
     while(1) {