pxt-calliope/docs/lessons/temperature.md

33 lines
979 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# temperature blocks lesson
measure the temperature on the @boardname@.
2016-03-26 00:47:20 +01:00
## Topic
Temperature
## Quick Links
2016-04-13 17:27:45 +02:00
* [activity](/lessons/temperature/activity)
* [challenges](/lessons/temperature/challenges)
2016-03-26 00:47:20 +01:00
## Prior learning/place of lesson in scheme of work
2016-11-02 01:44:37 +01:00
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 @boardname@. We will be learning how to get the temperature using on shake, local variables, as well as simple commands such as show number.
2016-03-26 00:47:20 +01:00
## Documentation
2016-04-05 07:33:13 +02:00
```cards
2016-03-30 01:17:34 +02:00
input.temperature()
let x = 0
basic.showNumber(7)
basic.showString("Hello!")
2016-04-05 07:33:13 +02:00
input.onGesture(Gesture.Shake, () => {})
2016-03-30 01:17:34 +02:00
```
2016-03-26 00:47:20 +01:00
## Objectives
* learn how to create a variable to store data
2016-11-02 01:44:37 +01:00
* 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 @boardname@.
2016-03-26 00:47:20 +01:00
* learn how to show a number on the LED screen