Another ubiquitous source of values is a potentiometer (or simply “pot” for short). It is very handy to adjust some parameters smoothly.
There is a special node
pot to read values from a potentiometer. You will find
it in the
potnode to your patch.
PORTpin value on the
potnode to A0 if you have connected the potentiometer to Arduino port A0 as shown above.
VALpin to input pins of nodes to control.
In our example, if you turn the potentiometer knob, it will affect the
brightness of the LEDs. Depending on the angle of the knob, the
returns a value from 0.0 to 1.0 to the
VAL pin, and that value is transferred
LUM pins of both LED nodes.