pins.go -> pin.go

This commit is contained in:
Patricio Whittingslow
2025-09-07 17:13:50 -03:00
committed by deadprogram
parent a9a59a6241
commit 5d1bc2fc36
+9
View File
@@ -0,0 +1,9 @@
package drivers
// PinOutput is hardware abstraction for a pin which outputs a
// digital signal (high or low voltage).
type PinOutput func(level bool)
// PinInput is hardware abstraction for a pin which receives a
// digital signal and reads it (high or low voltage).
type PinInput func() (level bool)