megan gimple / Mbed 2 deprecated gimple_A3_1_Ticker

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mgimple
Date:
Wed Oct 27 16:14:14 2021 +0000
Parent:
4:90f9fff2e44e
Commit message:
changing debounce timer

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 21 14:19:43 2021 +0000
+++ b/main.cpp	Wed Oct 27 16:14:14 2021 +0000
@@ -23,7 +23,7 @@
 
 void toggle()
 {
-    if (debounce.read_ms()>200) { //only allow toggle if debounce timer
+    if (debounce.read_ms()>400) { //only allow toggle if debounce timer
         LEDOut1=!LEDOut1;   //has passed 200ms
         debounce.reset();   //restart timer when toggle is performed
     }