So, buttons! They could be read with a
button node from
The node makes all the work related to signal debouncing so that you have not to
bother about it.
The button node has a purple output pin called the
PRS. This pin returns a new
type of data: boolean.
Boolean data can have either of two values: true or false. In our case, the
button node returns a value of
false when idle and
true while the button
is being pressed.
Good news, in XOD boolean and number data types are compatible. Here are two rules of datacasting:
Let’s bind a button with the LED.
PRSbutton output to the destination pin (
ledin our example).
Now, when you press the button the
button node sets the
PRS pin to
led node (
LUM pin) interprets it as 1, and the LED turns on at full