24 lines
473 B
Go
24 lines
473 B
Go
package PinControlService
|
|
|
|
type PinCommand string
|
|
type PinState string
|
|
type PinDirection string
|
|
type PinPull string
|
|
type PinCallback func(pinName string, state PinState)
|
|
|
|
const (
|
|
On PinCommand = "ON"
|
|
Off PinCommand = "OFF"
|
|
Toggle PinCommand = "TOGGLE"
|
|
|
|
StateOn PinState = "ON"
|
|
StateOff PinState = "OFF"
|
|
|
|
Input PinDirection = "Input"
|
|
Output PinDirection = "Output"
|
|
|
|
PullUp PinPull = "PullUp"
|
|
PullDown PinPull = "PullDown"
|
|
PullOff PinPull = "PullOff"
|
|
)
|