Getting Started from sense_hat import SenseHat sense = SenseHat()

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

For(int i = 1; i
My Internal Parts By: Teachers of Students with Autism - CHS.
Black Absorbs The Sun By Zarifa and Rikka. Question:  Why does black colored fabric absorb the sun more than lighter colors?
 What they eat What they eat  How they eat How they eat  Were they live Were they live  adaptaions adaptaions.
Incandescent Bulb Test Our circuit consists of two 30V DC adjustable power supplies connected in series with an 100W incandescent bulb.
A Macroscopic Description of Matter (Ideal-Gas Processes)
Objective: Identify and describe factors that influence reaction rates. Warm-up: Why do we keep food in the refrigerator?
Looking for patterns If we plot a graph of luminosity against temperature for lots of stars we get a graph like this…
By: Kyle Herd and Shannon Martin
COOLER THAN COOL IT IS ALL ABOUT MINTS.
Do Now: What is this?. Other types of Color Wheels.
Ill have a blue christmas without you Ill be so blue just thinking about you.
Representation of YIN and Yang What is balance?. The Ancients The meaning of Yin-Yang This Symbol(Yin-Yang) represents the ancient Chinese understanding.
The Science of Raku.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Comparing the Earth, the Moon and the Sun.. There is no water on the Moon. What would you drink?
Brazing Metals Quiz Steel to Steel Copper To Copper Aluminium to Aluminium Brass To Brass 1.Brazing is used to join which two metals?
CONTROLLING PROGRAM FLOW
INDEX WELCOME DISPLAY DEFAULT DISPLAY MAIN DISPLAY SYSTEM LAYOUT – P105 to P104 SYSTEM LAYOUT – P109 to P106 ROOMS P-109 to P-104 DISPLAY CHANGE SET POINTS.
Balancing Act- Mechanism of Homeostasis
How are the molecules in hot and cold water different? Describe how molecules look & act in cold water. In hot water.
We can all tell what is hot and what is cold. We use our sense of touch to tell us if things are hot or cold. We can feel what is hot and what is cold.
Scientific Method Step 4b (pg. 19) : Design an experiment METHOD/PROCEDURE: - This is a carefully written step-by-step set of guidelines that one would.
Air and Weather. What is in the air? Meteorology Study of Weather.
* What do you need to know to better understand weather? * List List.
The 5 senses.
 Stereotypes….when you think one idea applies to a whole group of people  For example: Many people think ALL scientists have crazy hair or no hair.
How to Read a Thermometer. A thermometer is an instrument that is used to measure temperature.
Multi-Selection If-elsif Statement.  In fact, it’s everything in between  Yesterday we learned how to add a control statement that gave us two path.
And you call me coloured..?
And you call me coloured..?. When I was born, I was black When I grow up, I’m black When I go in sun, I’m black When I’m scared, I’m black And when I.
And you call me coloured..? Written by an African child and nominated by The United Nations as the best Poem of 2006.
And you call me coloured
Question: Which graph is most similar in shape the density versus temperature graph of water? A B C D.
Introduction to Python with Raspberry Pi
Homeostasis.
Bbc microbit Lesson 3 – Temperature hot medium.
Adding & Subtracting Integers
Watch Pete the Cat here:
Intelligent Weather Station
Production Equipment Setup
National Tsing Hua University CS4101 Introduction to Embedded Systems Lab 6: Serial Communication Prof. Chung-Ta King Department of Computer Science National.
Transistor & Voltage Divider
Temperature.
How to Read a Thermometer
At the Beach High Frequency Word Story
graphics by Prettygrafik design
בטיחות בתעשייה בהיבט חברות הביטוח
STARS.
Temperature, Thermal Energy & Heat
BBC Microbit.
Units: g/mL, g/cm3.
More Calorimetry: Mixing Liquids
Make a Heatmap with JS Bernard O’Leary.
Cryogen vs. Autoclave Gloves
Click here for the answer. Click here for the answer.
Introduction to Python with Raspberry Pi
Water Bath Heaters 101.
High Frequency words (P.3 Unit 13 - Unit 15).
Text Copyright (c) 2017 by Dr. E. Horvath
Lesson 28: Developing Healthful Eating Habits
Heat Temperature Conduction Convection Radiation
What is a Function? Takes one or more arguments, or perhaps none at all Performs an operation Returns one or more values, or perhaps none at all Similar.
Energy in thermal systems
Homeostasis.
Copyright (c) 2017 by Dr. E. Horvath
The HR diagram.
Dry Ice Notes SUBLIMATION.
Presentation transcript:

Getting Started from sense_hat import SenseHat sense = SenseHat()

Scroll a Message sense.show_message("One small step for Me!", text_colour=[255, 0, 0]) sense.show_message("One small step for Pi!", text_colour=[255, 0, 0])

Is it Cold in here? temp = sense.get_temperature() print("Temperature: %s C" % temp)

LEDs X = [255, 0, 0] # Red O = [255, 255, 255] # White question_mark = [ O, O, O, X, X, O, O, O, O, O, X, O, O, X, O, O, O, O, O, O, O, X, O, O, O, O, O, O, X, O, O, O, O, O, O, X, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, X, O, O, O, O ] sense.set_pixels(question_mark)

Temperature Visualise! aka how hot is your breath! from sense_hat import SenseHat sense = SenseHat() sense.clear() on_pix = [255,0,0] off_pix = [0,0,0]

Temperature Visualise! Aka how hot is your breath! while True: hum = sense.humidity hum = round(hum,1) if hum > 100: hum = 100 leds = [] ratio = 64 / 100.0

Temperature Visualise! on_count = int (ratio*hum) off_count = 64 - on_count leds.extend([on_pix]*on_count) leds.extend([off_pix]*off_count) sense.set_pixels(leds)