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

Struct WritePin

go/engine/node/pinwrite.go:27–34  ·  view source on GitHub ↗

WritePin writes a digital or analog value to a linked channel. Build picks exactly one of the three pointers; the others stay nil. - Digital → gpioout (binary) - Analog (PWM) → pwm (duty cycle in [0,1]) - Analog (DAC) → dac (millivolts)

Source from the content-addressed store, hash-verified

25
26// WritePin writes a digital or analog value to a linked channel. Build
27// picks exactly one of the three pointers; the others stay nil.
28//
29// - Digital → gpioout (binary)
30// - Analog (PWM) → pwm (duty cycle in [0,1])
31// - Analog (DAC) → dac (millivolts)
32//
33// value is nil when the node is wired as a tool: the model supplies the value
34// per call instead of the workflow author supplying an expression. The two are
35// mutually exclusive — the builder rejects a node that is both tool-wired and
36// targeted by control flow.
37type WritePin struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected