conn
conn copied to clipboard
gpio: refactor edge argument from In() into its own function Edges()
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)