Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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) {