• Jump to sidebar
  • Jump to content
  • Scratch Wiki
  • Create
    • Make a Project
    • Create a Page
  • Explore
    • Explore Projects
    • Random Page
  • Discuss
    • Discuss Scratch
    • Wiki Forum Topic
    • Community Portal
  • Ideas
    • Scratch Ideas
    • Wiki FAQs
  • About
    • About Scratch
    • About Scratch Wiki
    • Page
    • Discussion
    • View source
    • View history
  • Not logged in
    • Log in
    • Request an account

Navigation

  • Scratch Wiki Home
  • Community Portal
  • Current Events
  • Recent Changes
  • Random Page
  • Help
  • About

Tools

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information

For Editors

  • WW Suggestions
  • Things To Do
  • Wiki Sandbox
  • Your Sandbox
  • Edit
  • Page history
  • Purge cache

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Raspberry Pi Sense HAT Extension

WMCommonsRaspberryPi4.png 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 () Sense HAT.png
  • 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)

See Also

  • Raspberry Pi GPIO Extension
  • Raspberry Pi Simple Electronics Extension
Retrieved from "https://en.scratch-wiki.info/w/index.php?title=Raspberry_Pi_Sense_HAT_Extension&oldid=309632"
Categories:
  • Scratch 3.0 Extensions
  • Raspberry Pi Sense HAT Extension
The Wiki is working on a dark theme, and you're seeing it! Got feedback? Post on the Wiki Forum Topic.
  • This page was last edited on 24 June 2022, at 22:35.
  • Content is available under CC BY-SA 4.0 unless otherwise noted.
  • Privacy policy
  • About Scratch Wiki
  • Disclaimers

  • CC BY-SA 4.0
About
About Scratch
About Scratch Wiki
For Parents
For Educators
For Developers
Scratch Team
Scratch Donors
Scratch Jobs
Donate to Scratch
Community
Community Guidelines
Discussion Forums
Scratch Wiki
Statistics
Community Portal
Resources
Help for Editors
Ideas
Wiki FAQs
Offline Editor
Legal
Privacy policy
Disclaimers
Scratch Family
Scratch Website
ScratchEd
ScratchJr
Scratch Day
Scratch Conference
Scratch Foundation
Scratch Store