diff --git a/docs/reference/input/acceleration.md b/docs/reference/input/acceleration.md index f59ffa62..a6aeea25 100644 --- a/docs/reference/input/acceleration.md +++ b/docs/reference/input/acceleration.md @@ -19,7 +19,7 @@ A **g** is as much acceleration as you get from Earth's gravity. ### Parameters -* which direction you are checking for acceleration, either `Dimension.X` (left and right), `Dimension.Y` (forward and backward), or `Dimension.Z` (up and down) +* ``dimension`` means which direction you are checking for acceleration, either `Dimension.X` (left and right), `Dimension.Y` (forward and backward), or `Dimension.Z` (up and down) ### Returns diff --git a/docs/reference/input/button-is-pressed.md b/docs/reference/input/button-is-pressed.md index 0562758b..901c58de 100644 --- a/docs/reference/input/button-is-pressed.md +++ b/docs/reference/input/button-is-pressed.md @@ -8,7 +8,7 @@ input.buttonIsPressed(Button.A); ### Parameters -* ``name`` is a [String](/reference/types/string). You should store `A` in it to check the left button, `B` to check the right button, or `A+B` to check both at the same time. +* ``button`` is a [String](/reference/types/string). You should store `A` in it to check the left button, `B` to check the right button, or `A+B` to check both at the same time. ### Returns diff --git a/docs/reference/input/magnetic-force.md b/docs/reference/input/magnetic-force.md index b795311d..75b111bb 100644 --- a/docs/reference/input/magnetic-force.md +++ b/docs/reference/input/magnetic-force.md @@ -15,7 +15,10 @@ The micro:bit measures magnetic force with **microteslas**. ### Parameters -* a [string](/reference/types/string) that says which direction the micro:bit should measure magnetic force in: either `x` (the left-right direction), `y` (the forward/backward direction), or `z` (the up/down direction) +* ``dimension`` means which direction the micro:bit should measure + magnetic force in: either `Dimension.X` (the left-right direction), + `Dimension.Y` (the forward/backward direction), or `Dimension.Z` + (the up/down direction) ### Returns diff --git a/docs/reference/input/rotation.md b/docs/reference/input/rotation.md index 2538d254..4b4f8429 100644 --- a/docs/reference/input/rotation.md +++ b/docs/reference/input/rotation.md @@ -15,7 +15,7 @@ check how the micro:bit is moving. ### Parameters -* which direction you are checking: `Rotation.Pitch` (up and down) or `Rotation.Roll` (left and right) +* ``kind`` means which direction you are checking: `Rotation.Pitch` (up and down) or `Rotation.Roll` (left and right) ### Returns diff --git a/docs/reference/input/set-accelerometer-range.md b/docs/reference/input/set-accelerometer-range.md index 68589749..b2c14748 100644 --- a/docs/reference/input/set-accelerometer-range.md +++ b/docs/reference/input/set-accelerometer-range.md @@ -5,12 +5,16 @@ Set up the part of the micro:bit that measures is speeding up or slowing down), in case you need to measure high or low acceleration. +```sig +input.setAccelerometerRange(AcceleratorRange.OneG); +``` + ### Parameters -* the biggest number of gravities of acceleration you will be - measuring (either 1G, 2G, 4G, or 8G). Any bigger numbers will be - ignored by your micro:bit, both when you are picking a number of - gravities, and when you are measuring acceleration. +* ``range`` means the biggest number of gravities of acceleration you + will be measuring (either `1g`, `2g`, `4g`, or `8g`). Any bigger numbers + will be ignored by your micro:bit, both when you are picking a + number of gravities, and when you are measuring acceleration. ### Example