Skip to content

Commit

Permalink
Note that Debounce is not implemented (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzky authored Jul 29, 2021
1 parent 1c39224 commit de2ac48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gpio/gpioutil/debounce.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de2ac48

Please sign in to comment.