This article or section documents something only available on the Raspberry Pi version of Scratch 3.0. |
The Raspberry Pi GPIO extension allows the Scratch program to control Raspberry Pi GPIO (general purpose input/output) pins. This extension is exclusive to 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