This commit is contained in:
Ron Hale-Evans 2016-07-15 14:53:52 -07:00
Родитель e23c5e019f
Коммит f56e9369dd
5 изменённых файлов: 15 добавлений и 8 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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