mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-05 07:27:49 +00:00
add PinInput and PinOutput HAL
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package drivers
|
||||
|
||||
// PinInput is hardware abstraction for a pin which receives a
|
||||
// digital signal and reads it (high or low voltage).
|
||||
type PinInput func() (level bool)
|
||||
|
||||
// PinOutput is hardware abstraction for a pin which outputs a
|
||||
// digital signal (high or low voltage).
|
||||
type PinOutput func(level bool)
|
||||
Reference in New Issue
Block a user