periph/conn

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

Opened this issue · 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 google/periph#383)