Controlling a Grove LED bar (D5) with a Grove button (A0).

Dependencies:   LED_Bar mbed

Files at this revision

API Documentation at this revision

Comitter:
jplunkett
Date:
Tue Aug 16 18:47:45 2016 +0000
Parent:
0:c7741b38fc0f
Commit message:
changed button wait interval

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c7741b38fc0f -r 38445b7f8db8 main.cpp
--- a/main.cpp	Tue Aug 16 18:38:43 2016 +0000
+++ b/main.cpp	Tue Aug 16 18:47:45 2016 +0000
@@ -9,7 +9,7 @@
     bar.setLevel(0);
 
     while(1) {
-        wait(0.2);
+        wait(0.3);
         if (button) {
             bar.setLevel(j++);
         } else {