initial commit
This commit is contained in:
23
internal/PinControlService/Types.go
Normal file
23
internal/PinControlService/Types.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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 = "PULL_UP"
|
||||
PullDown PinPull = "PULL_DOWN"
|
||||
PullOff PinPull = "PULL_OFF"
|
||||
)
|
||||
Reference in New Issue
Block a user