temp
Revision 0:16820371034f, committed 2014-10-03
- Comitter:
- jfields
- Date:
- Fri Oct 03 19:48:41 2014 +0000
- Commit message:
- blah
Changed in this revision
--- /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
--- /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;
+ }
+ }
+}
--- /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