This article or section documents something only available on the Raspberry Pi version of Scratch 3.0. |
The Raspberry Pi Sense HAT extension is an extension released in Scratch 3.0. It allows Scratch to interact with the Raspberry Pi Sense HAT, a grid of lights which can be used to display messages. This extension is only available on the Raspberry Pi version of Scratch 3.0, and is not included with any other versions.
Blocks
The Raspberry Pi Sense HAT extension contains twenty blocks:
display text [Hello!]:: extension
display character [A]:: extension
display sprite:: extension
display stage:: extension
clear display:: extension
set colour to [#2d184f]:: extension
set background to [#4160b5]:: extension
set pixel x (0 v) y (0 v) to [#5eb87c]:: extension
set rotation to [0 v] degrees:: extension
when joystick pushed [up v]:: extension hat
<joystick pushed [up v]?:: extension>
when shaken:: extension hat
when tilted [forward v]:: extension hat
(temperature:: extension)
(pressure:: extension)
(humidity:: extension
(roll:: extension)
(pitch:: extension)
(yaw:: extension)