| 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!]:: extensiondisplay character [A]:: extension-

display sprite:: extensiondisplay stage:: extensionclear display:: extensionset colour to [#2d184f]:: extensionset background to [#4160b5]:: extensionset pixel x (0 v) y (0 v) to [#5eb87c]:: extensionset rotation to [0 v] degrees:: extensionwhen joystick pushed [up v]:: extension hat<joystick pushed [up v]?:: extension>when shaken:: extension hatwhen tilted [forward v]:: extension hat(temperature:: extension)(pressure:: extension)(humidity:: extension(roll:: extension)(pitch:: extension)(yaw:: extension)
See Also