hijiri otani / Mbed 2 deprecated 7-3

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
TANI1
Date:
Tue Apr 26 07:55:41 2016 +0000
Commit message:
LCD

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 5571d9923fcf TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Tue Apr 26 07:55:41 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r 5571d9923fcf main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Apr 26 07:55:41 2016 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "TextLCD.h"
+TextLCD lcd(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17);
+BusOut myleds(PTB8,PTB9,PTB10,PTB11,PTE2,PTE3,PTE4,PTE5);
+BusOut motor(PTA1,PTA2);
+DigitalIn p(PTB2);
+
+int main() {
+    while(1) {
+        if(p==1){
+            myleds=0xff;
+            motor=0x1;
+            lcd.printf("ON \n");
+            }
+        else{
+            myleds=0x00;
+            motor=0x0;
+            lcd.printf("OFF\n");
+            }
+    }
+}
diff -r 000000000000 -r 5571d9923fcf mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Apr 26 07:55:41 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file