conn icon indicating copy to clipboard operation
conn copied to clipboard

gpio: refactor edge argument from In() into its own function Edges()

Open maruel opened this issue 4 years ago • 0 comments

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)

maruel avatar May 16 '21 19:05 maruel