Here is a
button node from
Take a look at button outputs. It has a
PRS pin, which is true whenever it is pressed. And
DONE pin, which pulses when reading is done, wherever the button is pressed or not.
This is a standard idiom for side-effect nodes representing hardware or, for example, the Internet.
Let’s make the LED glow while the button is pressed.
PORTvalue of the
Hold the button to turn the LED on.
Place the already familiar node
led to switch the LED on or off on each press.