mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
machine: clarify caller's responsibility in SetInterrupt
This commit is contained in:
committed by
Ron Evans
parent
db27541b1a
commit
7c4e83f5c0
@@ -172,7 +172,8 @@ func (p Pin) Get() bool {
|
||||
var pinCallbacks [32]func(Pin)
|
||||
|
||||
// SetInterrupt sets an interrupt to be executed when a particular pin changes
|
||||
// state.
|
||||
// state. The pin should already be configured as an input, including a pull up
|
||||
// or down if no external pull is provided.
|
||||
//
|
||||
// You can pass a nil func to unset the pin change interrupt. If you do so,
|
||||
// the change parameter is ignored and can be set to any value (such as 0).
|
||||
|
||||
Reference in New Issue
Block a user