|This article or section documents something only available on the Raspberry Pi version of Scratch 3.0.
|Toggle LED ()
toggle LED ( v)::extension
|Raspberry Pi Simple Electronics
The Toggle LED () block is a Raspberry Pi Simple Electronics block and a stack block. Its options are the numbers 0 through 27 for the first input, with each number representing a GPIO pin. This toggles the specified LED, turning it off if it was on before and vice versa.