Grove Button board example

Dependencies:   mbed

Fork of Seeed_Grove_Button_Example by Austin Blackstone

Revision:
0:d0ac4e3a0b7a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 04 03:04:40 2014 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+DigitalIn button(D6);
+
+int main()
+{
+    while(1){
+        if(button){
+            printf("Button Pressed\n\r");
+            wait(0.7); // simple debouncing
+        }           
+    }
+
+}