Fix some doc issues
This commit is contained in:
@ -21,7 +21,7 @@ We are creating a forever loop to constantly display the appropriate brightness
|
||||
<br/>
|
||||
|
||||
```blocks
|
||||
let acceleration = input.acceleration("y")
|
||||
let acceleration = input.acceleration(Dimension.Y)
|
||||
```
|
||||
|
||||
## 3. After storing the acceleration in a variable, write the code to take the absolute value of the acceleration, and store this value inside 'acceleration'.
|
||||
|
@ -15,7 +15,7 @@ Write the line of code to measure the acceleration and then store in it a variab
|
||||
<br/>
|
||||
|
||||
```blocks
|
||||
let accX = input.acceleration("x")
|
||||
let accX = input.acceleration(Dimension.X)
|
||||
```
|
||||
|
||||
Note: acceleration does not have be measured in the "x" direction. It can also be in the "y" or "z" direction.
|
||||
@ -27,7 +27,7 @@ After storing the acceleration in a variable, write the code to show acceleratio
|
||||
<br/>
|
||||
|
||||
```blocks
|
||||
let accX = input.acceleration("x")
|
||||
let accX = input.acceleration(Dimension.X)
|
||||
basic.showNumber(accX, 150)
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user