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

@ -4,7 +4,7 @@ Returns the duration of a beat in milli-seconds
## Simulator
This function only works on the micro:bit and in some browsers.
This function only works on the @boardname@ and in some browsers.
```sig
music.beat(BeatFraction.Whole)

View File

@ -5,7 +5,7 @@ faster or slower by the amount you say.
## Simulator
This function only works on the micro:bit and in some browsers.
This function only works on the @boardname@ and in some browsers.
```sig
music.changeTempoBy(20)
@ -15,7 +15,7 @@ music.changeTempoBy(20)
* ``bpm`` is a [number](/reference/types/number) that says how much to
change the bpm (beats per minute, or number of beats in a minute of
the music that the micro:bit is playing).
the music that the @boardname@ is playing).
### Examples

View File

@ -1,10 +1,10 @@
# Play Tone
Play a musical tone through pin ``P0`` of the micro:bit for as long as you say.
Play a musical tone through pin ``P0`` of the @boardname@ for as long as you say.
## Simulator
This function only works on the micro:bit and in some browsers.
This function only works on the @boardname@ and in some browsers.
```sig
music.playTone(440, 120)

View File

@ -4,7 +4,7 @@ Rest (play no sound) through pin `PO` for the amount of time you say.
## Simulator
This function only works on the micro:bit and in some browsers.
This function only works on the @boardname@ and in some browsers.
```sig
music.rest(400)
@ -13,7 +13,7 @@ music.rest(400)
### Parameters
* ``ms`` is a [number](/reference/types/number) saying how many
milliseconds the micro:bit should rest. One second is 1000
milliseconds the @boardname@ should rest. One second is 1000
milliseconds.
## Example

View File

@ -5,7 +5,7 @@ The tone will keep playing until you tell it not to.
## Simulator
This function only works on the micro:bit and in some browsers.
This function only works on the @boardname@ and in some browsers.
```sig
music.ringTone(440)
@ -20,9 +20,9 @@ or pitch.
### Example
This program checks the **accelerometer** for the micro:bit's
**acceleration** (how much the micro:bit is speeding up or slowing
down). Then it uses that acceleration to make a tone. If the micro:bit
This program checks the **accelerometer** for the @boardname@'s
**acceleration** (how much the @boardname@ is speeding up or slowing
down). Then it uses that acceleration to make a tone. If the @boardname@
speeds up, the tone's pitch gets higher, and if it slows down, the
tone's pitch gets lower. It's fun -- try it!

View File

@ -7,11 +7,11 @@ music.setTempo(60)
```
## Simulator
This function only works on the micro:bit and in some browsers.
This function only works on the @boardname@ and in some browsers.
### Parameters
* ``bpm`` is a [number](/reference/types/number) that means the beats per minute you want (the number of beats in a minute of the music that the micro:bit is playing).
* ``bpm`` is a [number](/reference/types/number) that means the beats per minute you want (the number of beats in a minute of the music that the @boardname@ is playing).
### See also

View File

@ -9,7 +9,7 @@ music.tempo()
### Returns
* a [number](/reference/types/number) that means the beats per minute (number of
beats in a minute of the music that the micro:bit is playing).
beats in a minute of the music that the @boardname@ is playing).
### See also