Controlling a Grove LED bar (D5) with a Grove button (A0).
Revision 1:38445b7f8db8, committed 2016-08-16
- 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 |
--- 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 {
Jenny Plunkett