add PinInput and PinOutput HAL

This commit is contained in:
soypat
2025-04-08 17:08:08 -03:00
parent 156d6e7c9c
commit 06e4c0267f
+9
View File
@@ -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)