Controlling a Grove LED bar (D5) with a Grove button (A0).
Diff: main.cpp
- Revision:
- 1:38445b7f8db8
- Parent:
- 0:c7741b38fc0f
--- 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