Open maruel opened 3 years ago
Make the function more generic and split the edges from the input.
Edges() would work similar to SenseContinuous() (albeit without an interval) and use a context.Context. Then In() is simplified. There's some API design work still needed.
(ported from https://github.com/google/periph/issues/383)
Make the function more generic and split the edges from the input.
Edges() would work similar to SenseContinuous() (albeit without an interval) and use a context.Context. Then In() is simplified. There's some API design work still needed.
(ported from https://github.com/google/periph/issues/383)