Skip to content

Instantly share code, notes, and snippets.

@MrDMurray
Last active September 15, 2021 18:15
Show Gist options
  • Save MrDMurray/28d3e0529ca909d7e5837a9bdeb89a0f to your computer and use it in GitHub Desktop.
Save MrDMurray/28d3e0529ca909d7e5837a9bdeb89a0f to your computer and use it in GitHub Desktop.
from sense_hat import SenseHat
sense = SenseHat()
sense.set_rotation(270)
sense.show_message("Hi")
humidity = round( sense.get_humidity(), 1 )
sense.show_message( "Humidity now is " + str(humidity) +"%" )
# Optional stuff:
# sense.show_message("My name should be Ada Lovelace", scroll_speed=0.05)
# sense.show_message("Hello", text_colour=(255,0,0), back_colour= (0,255,0))
# Lesson Guide:
# https://projects.raspberrypi.org/en/projects/astro-pi-mission-zero
# Cheat sheet:
# http://rpf.io/mz-printout
# This code can be found at:
# https://tinyurl.com/esamestuck
# Sim
# https://trinket.io/mission-zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment