Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos found in translation #5364

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/courses/ucp-science/population/setup-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ https://youtu.be/NNZEMiJHY2o
### on Start event

1. Name the project, “Population Trait Counter”.
2. The ``||basic:on Start||`` event will display the title and purpose of the microbit in all caps, “POPULATION TRAIT COUNTER”. The text is put in the ``||basic:show string||`` block (the title is put in the ``||basic:on start||`` event so when the microbit is started up it will show what it is programmed to do. It is done in all CAPS because it is easier to read as it is displayed in the LED display).
2. The ``||basic:on start||`` event will display the title and purpose of the microbit in all caps, “POPULATION TRAIT COUNTER”. The text is put in the ``||basic:show string||`` block (the title is put in the ``||basic:on start||`` event so when the microbit is started up it will show what it is programmed to do. It is done in all CAPS because it is easier to read as it is displayed in the LED display).
3. From the ``||variables:Variables||`` toolbox create variables named ``trait1``, ``trait2``, and ``total``. These will be used as counters to keep track of the for each trait counted. Variables are named to describe what they will be storing. Variables are usually named by using lowercase letters and/or digits. If it is a 2 word name, it is usually named using camelCaps (no spaces but a capital where the second word starts. Examples: ``totalCount``, ``randNumber``, etc.)

```blocks
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/banana-keyboard/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ input.onPinPressed(TouchPin.P1, () => {
})
```

Now, let's create some notes to play when the banana is pressed. Click on the **Loops** drawer then insert a ``||loops:repeat||`` loop into the ``||input:on pin pressed||`` block. Click on the **Variables** drawer and pull out a ``||variables:change item by||`` block and put it into the loop. Rename the variable to `sound`. Change the value from `1` to `25`. This will increase the variable `sound` from the note frequency of block `Middle A` to `Middle A` plus 25 and so on. Put a ``||variables:set to||`` block for `sound` right after the loop. Set it to `Middle A` a in order to reset the sound after a banana press.
Now, let's create some notes to play when the banana is pressed. Click on the **Loops** drawer then insert a ``||loops:repeat||`` loop into the ``||input:on pin pressed||`` block. Click on the **Variables** drawer and pull out a ``||variables:change item by||`` block and put it into the loop. Rename the variable to `sound`. Change the value from `1` to `25`. This will increase the variable `sound` from the note frequency of block `Middle A` to `Middle A` plus 25 and so on. Put a ``||variables:set to||`` block for `sound` right after the loop. Set it to `Middle A` in order to reset the sound after a banana press.

```blocks
let sound = music.noteFrequency(Note.A);
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/mood-radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ input.onButtonPressed(Button.B, () => {
})
```

If the ``||radio:on received number||`` block, we add another conditional ``||logic:if then||`` statement to handle the **frowny** "mood code".
If the ``||radio:on received number||`` event happens, we add in another conditional ``||logic:if then||`` statement to handle the **frowny** "mood code".

```blocks
radio.onReceivedNumber(function (receivedNumber) {
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/puma-rs-computer-shoe.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To compute the distance, the engineers relied on the relationship between stride

[![Screenshot of the US patent](/static/mb/projects/puma-rs-computer-shoe/uspatent.png)](/static/mb/projects/puma-rs-computer-shoe/patent.pdf)

Assuming``T`` is the elapsed time, ``S`` is the number of foot strikes
Assuming ``T`` is the elapsed time, ``S`` is the number of foot strikes
and ``A``, ``B`` are constants that have been identified in the calibration phase, the
speed ``V`` is computed as follows:

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/spy/coin-flipper.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ input.onButtonPressed(Button.A, () => {

## Step 3

Now, ``||basic:show an icon||`` for a `skull` ``||logic:if||`` the ``||math:random boolean||`` value is ``true``. This means ``heads``. ``||basic:show and icon||`` of a ``square`` when ``false`` to mean
Now, ``||basic:show icon||`` for a `skull` ``||logic:if||`` the ``||math:random boolean||`` value is ``true``. This means ``heads``. ``||basic:show icon||`` of a ``square`` when ``false`` to mean
``tails``.

```spy
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/spy/heads-guess.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ game.startCountdown(30000)

## Step 2

Create an ``||array:array||`` called `text_list` of words to guess. Arrays are also called lists.
Create an ``||arrays:array||`` called `text_list` of words to guess. Arrays are also called lists.

```spy
let text_list: string[] = []
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/spy/micro-chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Let's test our code! In the micro:bit on-screen simulator, press button **A**. Y

## {Step 7}

If you have a @boardname@ device, connect it to your computer and click the ``|Download|`` button. Follow the instructions to transfer your code onto the @boardname@. If you have two micro:bits, download the program to each one. Press button **A** on one and see if the other gets the message!
If you have a @boardname@ device, connect it to your computer and click the ``|Download|`` button. Follow the instructions to transfer your code onto the @boardname@. If you have two micro:bits, download the program to each one. Press button **A** on one and see if the other gets the message!

## {Step 8}

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/spy/name-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ If you have a @boardname@ device, connect it to your computer and click the ``|D

## {Step 6}

Go further - try adding more ``||basic:show string||`` and ``||basic:show number||`` functions to tell people more about yourself (favorite color, lucky number). Learn more about how the @boardname@ lights work by watching [this video](https://youtu.be/qqBmvHD5bCw).
Go further - try adding more ``||basic:show string||`` and ``||basic:show number||`` functions to tell people more about yourself (favorite color, lucky number). Learn more about how the @boardname@ lights work by watching [this video](https://youtu.be/qqBmvHD5bCw).
2 changes: 1 addition & 1 deletion docs/projects/v2-cat-napping.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ input.onButtonPressed(Button.A, function () {

## {Set the indicator icon}

► Let's display an image when the @boardname@ is logging data. From the ``||basic:Basic||`` category, grab a ``||basic:show icon []||`` block and snap it into the empty **top container** of your ``||logic:if then / else||`` statement.
► Let's display an image when the @boardname@ is logging data. From the ``||basic:Basic||`` category, grab a ``||basic:show icon [ ]||`` block and snap it into the empty **top container** of your ``||logic:if then / else||`` statement.
► Set it to show the "target" icon (it looks like an empty sun - scroll down to find it!). This will show whenever your @boardname@ is collecting data.
💡 In the ``show icon`` dropdown menu options, you can hover to see what each design is called.

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/v2-clap-lights.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ input.onSound(DetectedSound.Loud, function () {
Your @boardname@ might detect sounds when you don't want it to. Setting a [__*sound threshold*__](#soundThreshold "a number for how loud a sound needs to be to trigger an event. 0 = silence to 255 = maximum noise") could help 🔉🔊

► Click on the ``||input:Input||`` category. A new category should show up beneath it called ``||input:...more||``.
► From ``||input:...more||``, grab ``||input:set [loud] sound threshold to [128]||`` and snap it into your **empty** ``||basic: on start||`` container.
► From ``||input:...more||``, grab ``||input:set [loud] sound threshold to [128]||`` and snap it into your **empty** ``||basic:on start||`` container.
💡 Try to change the value of your sound threshold so that every time you clap, your lights will turn on if they are off and vice versa.

```blocks
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/pins/i2c-write-buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A device connected to the I2C pins on the @boardname@ at the address is selected

#### Repeated start

A [repeated start condition](http://www.i2c-bus.org/repeated-start-condition/) is set to help make sure that when you want to write data miltiple times from the device at once, it can happen without interruption. A start conditon is sent (if **repeated** is `true`) each time a buffer is written without a matching stop condition. When the last buffer is written, the stop conditon can be sent by setting **repeated** to `false`. For single writes, don't use **repeated** or set it to `false`.
A [repeated start condition](http://www.i2c-bus.org/repeated-start-condition/) is set to help make sure that when you want to write data multiple times from the device at once, it can happen without interruption. A start conditon is sent (if **repeated** is `true`) each time a buffer is written without a matching stop condition. When the last buffer is written, the stop conditon can be sent by setting **repeated** to `false`. For single writes, don't use **repeated** or set it to `false`.

#### Reserved addresses

Expand Down
Loading