MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / NewWritePinPWM

Function NewWritePinPWM

go/engine/node/pinwrite.go:46–52  ·  view source on GitHub ↗

NewWritePinPWM builds a WritePin bound to a PWM output channel.

(id string, value workflow.Expression, pwm *channel.PWM)

Source from the content-addressed store, hash-verified

44}
45
46// NewWritePinDigital builds a WritePin bound to a GPIO output channel.
47func NewWritePinDigital(id string, value *workflowapi.Expression, toolDescription string, gpioout *channel.GPIOOutput) *WritePin {
48 return &WritePin{
49 LinearNode: engine.NewLinearNode(id),
50 value: value,
51 toolDescription: toolDescription,
52 gpioout: gpioout,
53 }
54}
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected