CIS541 Xueli Jon / Mbed 2 deprecated hello_world

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
jfields
Date:
Fri Oct 03 19:48:41 2014 +0000
Commit message:
blah

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 16820371034f TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Fri Oct 03 19:48:41 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r 16820371034f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 03 19:48:41 2014 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+#include "TextLCD.h"
+#include <stdio.h>
+#include <stdlib.h>
+
+TextLCD lcd(p15, p16, p17, p18, p19, p20, TextLCD::LCD16x2);
+
+Serial pc (USBTX, USBRX);
+
+//DigitalOut myled(LED1);
+
+int main() {
+    
+    lcd.printf("Hello World!\n");
+    lcd.printf("Hello World!\n");
+    
+    int n = 0;
+    
+    while (1) {
+        lcd.printf("%c",pc.getc());
+        n++;
+        if (n==15) {
+            lcd.printf("\n");
+            n=0;
+        }
+    }
+}
diff -r 000000000000 -r 16820371034f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 03 19:48:41 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file