mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
38c606d813
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 lines
172 B
Go
11 lines
172 B
Go
package drivers
|
|
|
|
// Pin is a digital pin interface. It is notably implemented by the
|
|
// machine.Pin type.
|
|
type Pin interface {
|
|
Get() bool
|
|
High()
|
|
Low()
|
|
Set(high bool)
|
|
}
|