The <GPIO_DI> block allows you to configure one of the Raspberry Pi’s GPIO pins as a digital input and read its value, unless “close” is true.
See the gpiozero module documentation for more details.
•« close » :Resets the pin configuration if true. The default value is false.
•« pin » : The BCM number of the GPIO pin. The default value is 0 (type int)
•« value » :This is the current state of the digital input; True if high, False if low.
•« status » : -1 if the pin is not configured, 0 if OK, 1 if configured as a “Button”
•« obj » : This is the “Button” object
When a Raspberry Pi is used as a target, this block allows you to use a GPIO pin as a digital input. Note that by default, a pull-up resistor pulls the input to the high state; therefore, you must either leave the input open (which will result True) or ground the input (which will result False)