mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-20 06:28:59 +00:00
missed high or low ~voltage~ level
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package drivers
|
package drivers
|
||||||
|
|
||||||
// PinOutput is hardware abstraction for a pin which outputs a
|
// PinOutput is hardware abstraction for a pin which outputs a
|
||||||
// digital signal (high or low voltage).
|
// digital signal (high or low level).
|
||||||
//
|
//
|
||||||
// // Code conversion demo: from machine.Pin to drivers.PinOutput
|
// // Code conversion demo: from machine.Pin to drivers.PinOutput
|
||||||
// led := machine.LED
|
// led := machine.LED
|
||||||
@@ -10,7 +10,7 @@ package drivers
|
|||||||
type PinOutput func(level bool)
|
type PinOutput func(level bool)
|
||||||
|
|
||||||
// PinInput is hardware abstraction for a pin which receives a
|
// PinInput is hardware abstraction for a pin which receives a
|
||||||
// digital signal and reads it (high or low voltage).
|
// digital signal and reads it (high or low level).
|
||||||
//
|
//
|
||||||
// // Code conversion demo: from machine.Pin to drivers.PinInput
|
// // Code conversion demo: from machine.Pin to drivers.PinInput
|
||||||
// input := machine.LED
|
// input := machine.LED
|
||||||
|
|||||||
Reference in New Issue
Block a user