Yoji KURODA / Mbed 2 deprecated Mechatro_DigitalIn

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ykuroda
Date:
Thu Oct 05 07:44:05 2017 +0000
Child:
1:e450b69e093a
Commit message:
1st commit

Changed in this revision

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/main.cpp	Thu Oct 05 07:44:05 2017 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalIn d0(D0);
+
+int main() {
+    while(1) {
+        myled = ~myled; // LED is toggled
+
+        printf("D[%1d]\n",d0);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 05 07:44:05 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/235179ab3f27
\ No newline at end of file