yutaro okamura / Mbed 2 deprecated test2-7

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
namazunlv100
Date:
Mon Apr 25 10:06:49 2016 +0000
Commit message:
??????????????????????

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Mon Apr 25 10:06:49 2016 +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	Mon Apr 25 10:06:49 2016 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+DigitalIn p(PTB2);
+BusOut myled(PTB8,PTB9,PTB10,PTB11,PTE2,PTE3,PTE4,PTE5);
+BusOut moter(PTA1,PTA2);
+PwmOut pwm(PTD4);
+TextLCD lcd(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17);
+
+int main() {
+    while(1) {
+        if(p==1){
+            lcd.printf("yes\n");
+            pwm=1.0f;
+            moter=2;
+            myled=0xff;
+        }
+        else{
+            lcd.printf("no\n");
+            pwm=1.0f;
+            moter=0;
+            myled=0x00;
+        }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Apr 25 10:06:49 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file