DigitalIn demo for Nucleo F303K8

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
flappingwing
Date:
Fri Sep 23 07:19:54 2016 +0000
Commit message:
DigitalIn demo for Nucleo F303K8

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
diff -r 000000000000 -r 6d5d11330c0b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 23 07:19:54 2016 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+DigitalOut  myled(LED1);
+DigitalIn   input(D0);
+
+int main() {
+    input.mode( PullUp );
+    
+    while(1) {
+        myled = !input;
+        wait( 0.1 );
+    }
+}
diff -r 000000000000 -r 6d5d11330c0b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 23 07:19:54 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/abea610beb85
\ No newline at end of file