-

Dependencies:   mbed

Revision:
0:07055f3355f6
diff -r 000000000000 -r 07055f3355f6 Nucleo.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Nucleo.h	Wed Mar 07 14:20:11 2018 +0000
@@ -0,0 +1,15 @@
+
+#include "mbed.h"
+ 
+DigitalOut myled(LED1);
+DigitalIn pb(USER_BUTTON);
+
+// SPST Pushbutton demo using internal PullUp function
+// no external PullUp resistor needed
+// Pushbutton from P8 to GND.
+int main() {
+    pb.mode(PullUp);
+    while(1) {
+        myled = pb;
+    }
+}
\ No newline at end of file