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

Function NewWritePinDigital

go/engine/node/pinwrite.go:37–43  ·  view source on GitHub ↗

NewWritePinDigital builds a WritePin bound to a GPIO output channel.

(id string, value workflow.Expression, gpioout *channel.GPIOOutput)

Source from the content-addressed store, hash-verified

35// mutually exclusive — the builder rejects a node that is both tool-wired and
36// targeted by control flow.
37type WritePin struct {
38 engine.LinearNode
39 value *workflowapi.Expression
40 toolDescription string
41 gpioout *channel.GPIOOutput
42 pwm *channel.PWM
43 dac *channel.DAC
44}
45
46// NewWritePinDigital builds a WritePin bound to a GPIO output channel.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected