Deprecating old radio APIs and fixing docs (#289)

This commit is contained in:
Richard Knoll
2016-10-24 16:30:21 -07:00
committed by Peli de Halleux
parent ba69563bf4
commit ec404e5887
25 changed files with 205 additions and 163 deletions

View File

@ -1,8 +1,8 @@
# Seismograph Lesson
# Seismograph Lesson
Build a seismograph with household materials
## Topic
## Topic
Acceleration & Analog Read Pin
@ -11,7 +11,7 @@ Acceleration & Analog Read Pin
* [activity](/lessons/seismograph/activity)
* [challenge](/lessons/seismograph/challenge)
## Prior learning/place of lesson in scheme of work
## Prior learning/place of lesson in scheme of work
Learn how to **show LEDs** to turn on a LED light pattern on the LED screen. We will be learning basic comments such as show LEDs and pause.
@ -21,17 +21,16 @@ Learn how to **show LEDs** to turn on a LED light pattern on the LED screen. We
basic.forever(() => {});
radio.sendNumber(0);
input.acceleration(Dimension.Strength)
radio.onDataReceived(() => {});
radio.onDataPacketReceived(() => {});
led.plotBarGraph(0, 0);
radio.receiveNumber();
```
## Objectives
* learn how to repeat code forever in the background
* learn how to display a vertical bar graph based on the value.
* learn how to display a vertical bar graph based on the value.
* learn how to return the sum of the two numbers
* learn how to get acceleration value in milli-gravitys
* learn how to get acceleration value in milli-gravitys
* learn how to read the connector value as analog as a value comprised between 0 and 1023
```package