mirror of
https://github.com/kidoman/embd
synced 2024-12-30 16:41:37 +01:00
minor documentation addition
This commit is contained in:
parent
b013125381
commit
905f4857d9
6
gpio.go
6
gpio.go
@ -33,7 +33,11 @@ const (
|
||||
EdgeBoth Edge = "both"
|
||||
)
|
||||
|
||||
// InterruptPin implements access to a Interruptable capable GPIO pin.
|
||||
// InterruptPin implements access to an interrupt capable GPIO pin.
|
||||
// The basic capability provided is to watch for a transition on the pin and
|
||||
// generate a callback to a handler when a transition occurs.
|
||||
// On Linux the underlying implementation generally uses epoll to receive the
|
||||
// interrupts at user-level.
|
||||
type InterruptPin interface {
|
||||
|
||||
// Start watching this pin for interrupt
|
||||
|
Loading…
x
Reference in New Issue
Block a user