rename micro:bit to @boardname@

This commit is contained in:
Peli de Halleux
2016-11-01 17:44:37 -07:00
parent 9bc1e38345
commit 89406330cf
226 changed files with 697 additions and 750 deletions

View File

@ -2,7 +2,7 @@
Get the acceleration value (milli g-force), in one of three specified dimensions.
Find the acceleration of the micro:bit (how fast it is speeding up or slowing down).
Find the acceleration of the @boardname@ (how fast it is speeding up or slowing down).
```sig
input.acceleration(Dimension.X);
@ -23,11 +23,11 @@ A **g** is as much acceleration as you get from Earth's gravity.
### Returns
* a [number](/reference/types/number) that means the amount of acceleration. When the micro:bit is lying flat on a surface with the screen pointing up, `x` is `0`, `y` is `0`, and `z` is `-1023`.
* a [number](/reference/types/number) that means the amount of acceleration. When the @boardname@ is lying flat on a surface with the screen pointing up, `x` is `0`, `y` is `0`, and `z` is `-1023`.
### Example: bar chart
This example shows the acceleration of the micro:bit with a bar graph.
This example shows the acceleration of the @boardname@ with a bar graph.
```blocks
basic.forever(() => {

View File

@ -1,6 +1,6 @@
# Button Is Pressed
Check whether a button is pressed right now. The micro:bit has two buttons: button `A` and button `B`.
Check whether a button is pressed right now. The @boardname@ has two buttons: button `A` and button `B`.
```sig
input.buttonIsPressed(Button.A);

View File

@ -1,8 +1,8 @@
# Compass Heading
Find which direction on a compass the micro:bit is facing.
Find which direction on a compass the @boardname@ is facing.
The micro:bit measures the **compass heading** from `0` to `360`
The @boardname@ measures the **compass heading** from `0` to `360`
degrees with its **magnetometer** chip. Different numbers mean north,
east, south, and west.
@ -33,7 +33,7 @@ the compass needle on the screen to change the compass heading.
### Example: compass
This program finds the compass heading and then shows a letter
that means whether the micro:bit is facing north (N), south (S),
that means whether the @boardname@ is facing north (N), south (S),
east (E), or west (W).
```blocks
@ -52,12 +52,12 @@ basic.forever(() => {
### Calibration
Every time you start to use the compass (for example, if you have just
turned the micro:bit on), the micro:bit will start to **calibrate**
turned the @boardname@ on), the @boardname@ will start to **calibrate**
(adjust itself). It will ask you to draw a circle by tilting the
micro:bit.
@boardname@.
If you are calibrating or using the compass near metal, it might
confuse the micro:bit.
confuse the @boardname@.
### See also

View File

@ -33,8 +33,8 @@ input.onButtonPressed(Button.B, () => {
### Example: chart light level
This program shows the light level with a [bar chart](/reference/led/plot-bar-graph) on the micro:bit screen.
If you carry the micro:bit around to different places with different light levels,
This program shows the light level with a [bar chart](/reference/led/plot-bar-graph) on the @boardname@ screen.
If you carry the @boardname@ around to different places with different light levels,
the bar chart will change.
```blocks

View File

@ -8,14 +8,14 @@ input.magneticForce(Dimension.X);
## ~hint
The micro:bit measures magnetic force with **microteslas**.
The @boardname@ measures magnetic force with **microteslas**.
## ~
### Parameters
* ``dimension`` means which direction the micro:bit should measure
* ``dimension`` means which direction the @boardname@ 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)
@ -26,7 +26,7 @@ The micro:bit measures magnetic force with **microteslas**.
### Example: metal detector
This program makes the center LED of the micro:bit get brighter when
This program makes the center LED of the @boardname@ get brighter when
the magnetic force is stronger, and dimmer when it is weaker.
```blocks

View File

@ -2,7 +2,7 @@
Start an [event handler](/reference/event-handler) (part of the
program that will run when something happens) This handler works when
you do a **gesture** (like shaking the micro:bit).
you do a **gesture** (like shaking the @boardname@).
```sig
input.onGesture(Gesture.Shake,() => {
@ -11,11 +11,11 @@ input.onGesture(Gesture.Shake,() => {
### Parameters
* ``gesture`` means the way you hold or move the micro:bit. This can be `shake`, `logo up`, `logo down`, `screen up`, `screen down`, `tilt left`, `tilt right`, `free fall`, `3g`, or `6g`.
* ``gesture`` means the way you hold or move the @boardname@. This can be `shake`, `logo up`, `logo down`, `screen up`, `screen down`, `tilt left`, `tilt right`, `free fall`, `3g`, or `6g`.
### Example: random number
This program shows a number from `0` to `9` when you shake the micro:bit.
This program shows a number from `0` to `9` when you shake the @boardname@.
```blocks
input.onGesture(Gesture.Shake,() => {

View File

@ -4,12 +4,12 @@ Start an [event handler](/reference/event-handler) (part of the
program that will run when something happens, like when a button is
pressed). This handler works when you press pin `0`, `1`, or `2`
together with `GND`. When you are using this function in a web
browser, click the pins on the screen instead of the ones on the BBC
micro:bit.
browser, click the pins on the screen instead of the ones on the
@boardname@.
If you hold the `GND` pin with one hand and touch pin `0`, `1`, or `2`
with the other, a very small (safe) amount of electricity will flow
through your body and back into the micro:bit. This is called
through your body and back into the @boardname@. This is called
**completing a circuit**. It's like you're a big wire!
```sig

View File

@ -4,12 +4,12 @@ Start an [event handler](/reference/event-handler) (part of the
program that will run when something happens, like when a button is
pressed). This handler works when you release pin `0`, `1`, or `2`
together with `GND`. When you are using this function in a web
browser, click and release the pins on the screen instead of the ones on the BBC
micro:bit.
browser, click and release the pins on the screen instead of the ones on the
@boardname@.
If you hold the `GND` pin with one hand and touch pin `0`, `1`, or `2`
with the other, a very small (safe) amount of electricity will flow
through your body and back into the micro:bit. This is called
through your body and back into the @boardname@. This is called
**completing a circuit**. It's like you're a big wire!
```sig

View File

@ -4,7 +4,7 @@ Find whether the pin you say is pressed or not pressed.
If you hold the `GND` pin with one hand and touch pin `0`, `1`, or `2` with the other,
a very small (safe) amount of electricity will flow through your body and back into
the micro:bit. This is called **completing a circuit**. It's like you're a big wire!
the @boardname@. This is called **completing a circuit**. It's like you're a big wire!
```sig
input.pinIsPressed(TouchPin.P0);

View File

@ -1,6 +1,6 @@
# Rotation
Find how much the micro:bit is tilted in different directions.
Find how much the @boardname@ is tilted in different directions.
```sig
input.rotation(Rotation.Roll);
@ -9,7 +9,7 @@ input.rotation(Rotation.Roll);
## ~hint
The @boardname@ has a part called the **accelerometer** that can
check how the micro:bit is moving.
check how the @boardname@ is moving.
## ~
@ -21,13 +21,13 @@ check how the micro:bit is moving.
* a [number](/reference/types/number) that means how much the microbit is tilted in the direction you say, from `0` to `360` degrees
### Example: micro:bit leveler
### Example: @boardname@ leveler
This program helps you move the @boardname@ until it is level. When
it is level, the micro:bit shows a smiley.
it is level, the @boardname@ shows a smiley.
If you are running this program in a browser, you can tilt the
micro:bit with your mouse.
@boardname@ with your mouse.
```blocks

View File

@ -1,6 +1,6 @@
# Set Accelerometer Range
Set up the part of the micro:bit that measures
Set up the part of the @boardname@ that measures
[acceleration](/reference/input/acceleration) (how much the microbit
is speeding up or slowing down), in case you need to measure high
or low acceleration.
@ -13,12 +13,12 @@ input.setAccelerometerRange(AcceleratorRange.OneG);
* ``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
will be ignored by your @boardname@, both when you are picking a
number of gravities, and when you are measuring acceleration.
### Example
This program says the highest acceleration that your micro:bit
This program says the highest acceleration that your @boardname@
will measure is 4G. Then it measures acceleration from side to side
until you stop the program.
@ -31,7 +31,7 @@ basic.forever(() => {
#### ~hint
This program does not work in the simulator, only in a micro:bit.
This program does not work in the simulator, only in a @boardname@.
#### ~

View File

@ -1,7 +1,7 @@
# Temperature
Find the temperature where you are. The temperature is measured in Celsius (metric).
The micro:bit can find the temperature nearby by checking how hot its computer chips are.
The @boardname@ can find the temperature nearby by checking how hot its computer chips are.
```sig
input.temperature();
@ -14,11 +14,11 @@ input.temperature();
### How does it work?
The @boardname@ checks how hot its CPU (main computer chip) is.
Because the micro:bit does not usually get very hot, the temperature of the CPU
Because the @boardname@ does not usually get very hot, the temperature of the CPU
is usually close to the temperature of wherever you are.
The micro:bit might warm up a little if you make it work hard, though!
The @boardname@ might warm up a little if you make it work hard, though!
### Example: micro:bit thermometer
### Example: @boardname@ thermometer
The following example uses `temperature` and `show number` to show the temperature of the room.
@ -45,9 +45,9 @@ basic.forever(() => {
### ~hint
Try comparing the temperature your micro:bit shows to a real thermometer in the same place.
You might be able to figure out how much to subtract from the number the micro:bit
shows to get the real temperature. Then you can change your program so the micro:bit is a
Try comparing the temperature your @boardname@ shows to a real thermometer in the same place.
You might be able to figure out how much to subtract from the number the @boardname@
shows to get the real temperature. Then you can change your program so the @boardname@ is a
better thermometer.
### ~