machine: clarify caller's responsibility in SetInterrupt

This commit is contained in:
Ayke van Laethem
2020-11-04 01:43:34 +01:00
committed by Ron Evans
parent db27541b1a
commit 7c4e83f5c0
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ func (p Pin) Get() bool {
}
// 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.
//
// This call will replace a previously set callback on this pin. You can pass a
// nil func to unset the pin change interrupt. If you do so, the change