|When Button () is ()|
when button (0 v) is [pressed v] :: extension hat
|Category||Raspberry Pi Simple Electronics|
The when button () is () block is a Raspberry Pi Simple Electronics block and a hat block. Its options are the numbers 0 through 27 for the first input, with each number representing a GPIO pin. The second options are "pressed" and "released". The block activates when the specified LED is pressed or released, depending on the input.