From cccdb65209a5ff6e3ce844066353f04d52cc261c Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 15 May 2016 16:00:09 +0100 Subject: [PATCH] Minor mods --- examples/Debounce/Debounce.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Debounce/Debounce.ino b/examples/Debounce/Debounce.ino index ca140f4a..c7ca799c 100644 --- a/examples/Debounce/Debounce.ino +++ b/examples/Debounce/Debounce.ino @@ -13,8 +13,9 @@ const int KEY = XX; // The pin that the key is attached to. void setup() { - // Initialize LED pin as an output. + // Initialize LED pin as an output and set off. pinMode(LED_BUILTIN , OUTPUT); + digitalWrite(LED_BUILTIN, LOW); // Initialize KEY pin as an input. pinMode(KEY, INPUT); @@ -34,5 +35,5 @@ void loop() } } - delay(1); // Wait 1ms + delay(SAMPLE_TIME); // Wait 1ms }