From de2ac482853ea4812560ccf7e545f0bb121c191f Mon Sep 17 00:00:00 2001 From: Ohad Lutzky Date: Thu, 29 Jul 2021 17:32:04 +0100 Subject: [PATCH] Note that Debounce is not implemented (#10) --- gpio/gpioutil/debounce.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpio/gpioutil/debounce.go b/gpio/gpioutil/debounce.go index 8988585..953b01b 100644 --- a/gpio/gpioutil/debounce.go +++ b/gpio/gpioutil/debounce.go @@ -34,6 +34,12 @@ type debounced struct { // state, ignoring following state changes. // // Either value can be 0. +// +// WARNING +// +// This is not yet implemented. +// +// TODO(https://github.com/periph/conn/issues/5): Implement this func Debounce(p gpio.PinIO, denoise, debounce time.Duration, edge gpio.Edge) (gpio.PinIO, error) { if denoise == 0 && debounce == 0 { return p, nil