WMCommonsRaspberryPi4.jpg This feature is only available on the Raspberry Pi version of Scratch 3.0. No other version has it.
Set GPIO () to Input ()
set gpio (0 v) to input [pulled high v] :: extension
Category Raspberry Pi GPIO
Type Stack
Introduced in 3.0

The set gpio () to input () block is a Raspberry Pi GPIO block and a stack block. Its options for the first input are the numbers 0 thru 27, with each number representing a GPIO pin. The second options are "pulled high", "pulled low", and "not pulled", representing a state that the pin can be set to. The block sets the specified pin to the specified position.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.