![]() |
This feature is only available on the Raspberry Pi version of Scratch 3.0. No other version has it. |
The Raspberry Pi GPIO extension allows Scratch to control Raspberry Pi GPIO pins. This extension is only available on the Raspberry Pi release of Scratch 3.0, other versions do not have it.
Blocks
The Raspberry Pi GPIO extension contains four blocks:
when gpio (0 v) is [high v] :: extension hat
<gpio (0 v) is [high v]? :: extension>
set gpio (0 v) to output [high v] :: extension
set gpio (0 v) to input [pulled high v] :: extension