pxt-calliope/docs/lessons/temperature.md
Peli de Halleux df17ba09ae updated links
2016-04-04 22:33:13 -07:00

33 lines
995 B
Markdown

# temperature blocks lesson
measure the temperature on the BBC micro:bit.
## Topic
Temperature
## Quick Links
* [activity](/microbit/lessons/temperature/activity)
* [challenges](/microbit/lessons/temperature/challenges)
## Prior learning/place of lesson in scheme of work
Learn how to get the ambient temperature (degree Celsius °C). The temperature is inferred from the the surface temperature of the various chips on the micro:bit. We will be learning how to get the temperature using on shake, local variables, as well as simple commands such as show number.
## Documentation
```cards
input.temperature()
let x = 0
basic.showNumber(7)
basic.showString("Hello!")
input.onGesture(Gesture.Shake, () => {})
```
## Objectives
* learn how to create a variable to store data
* learn how to get the ambient temperature (degree Celsius °C). The temperature is inferred from the the surface temperature of the various chips on the micro:bit.
* learn how to show a number on the LED screen