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)
| 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. |
| 37 | type WritePin struct { |
nothing calls this directly
no outgoing calls
no test coverage detected