pxt-calliope/docs/lessons/charting/quiz-answers.md
2016-11-01 17:44:37 -07:00

892 B

charting quiz answers

Measure the acceleration on the @boardname@ in the "x" direction.

Name

Directions

Use this activity document to guide your work in the charting activity

Answer the questions while completing the tutorial. Pay attention to the dialogues!

1. Why are you creating a 'forever' loop?


We are creating a forever loop to constantly display the appropriate brightness on the LED display.

2. Write the line of code to measure the acceleration with respect to the "x" axis and display this value in a bar graph.


led.plotBarGraph(input.acceleration(Dimension.X), 0)