From 5b7ab8d61d8678d48a637e06151312aeae95c5e7 Mon Sep 17 00:00:00 2001 From: Will Harris-Braun Date: Tue, 20 Apr 2021 18:26:51 -0400 Subject: [PATCH] Add documentation for debounce time parameter (which was added in commit 72695525) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fcdfb6d..1738873 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ void loop() { Documentation ------------- -**Button(int pin)** -Creates a new Button. +**Button(int pin, int debounce_ms = 100)** +Creates a new Button attached a specified pin. If you need to, you can specify the debounce time as a second parameter. If left out, it defaults to 100ms. **void begin()** Call this in your `setup` method to setup the button. All it does is set the correct pin mode.