Bring in fixes from #1128 to v1 (#1491)

This commit is contained in:
Galen Nickel 2018-10-22 13:22:50 -07:00 committed by Peli de Halleux
parent eff4ccef56
commit a81a36e0ca
12 changed files with 7 additions and 14 deletions

View File

@ -1,4 +1,4 @@
# Banana keyboard
# Banana Keyboard
## @description A beginner maker activity, building a piano from bananas.

View File

@ -1,4 +1,3 @@
# Fireflies
## ~ avatar

View File

@ -25,8 +25,7 @@ input.onButtonPressed(Button.A, () => {
});
```
We click on the Logic drawer then insert a `if do` that will conditionally run code depending on whether the Boolean condition is true or false. Then insert the variable `light` into the first part of the inequality. The variable "light" will appear in the Variables drawer. Finally, we insert 25. Modify your code so that your code looks like this. If the `light level` is `less than` 25, play `ring tone` `C`. If this conditions is not true, play `ring tone` `A`.
We click on the Logic drawer then insert a `if do` that will conditionally run code depending on whether the Boolean condition is true or false. Then insert the variable `light` into the first part of the inequality. The variable "light" will appear in the Variables drawer. Finally, we insert 25. Modify your code so that your code looks like this. If the `light level` is `less than` 25, play `ring tone` `C`. If this conditions is not true, play `ring tone` `A`.
```blocks
input.onButtonPressed(Button.A, () => {
@ -41,7 +40,6 @@ input.onButtonPressed(Button.A, () => {
});
```
We click on the Logic drawer then insert a `less than` sign into the first `if` conditional that will conditionally run code depending on whether the Boolean condition is true or false. Continue this logic to continue with these conditional statements. Click on the Logic drawer. Then we want to add additional conditional statements by clicking on the gear to the left of the `if`. Add 05 `else if` and 01 `else` inside the `if do` block structure. If the `light level` is `less than` 50, play `ring tone` ``D``. If the `light level` is `less than` 100, play `ring tone` ``E``. If the `light level` is `less than` 150, play `ring tone` ``F`` If the `light level` is `less than` 180, play `ring tone` ``G``. If these conditions are not true, `ring tone` ``A``.
```blocks

View File

@ -1,4 +1,3 @@
# Milk Monster
## @description A milky-monster like robot built with the @boardname@

View File

@ -1,6 +1,5 @@
# Plant Watering
## ~avatar avatar
Water your plants automatically!

View File

@ -1,4 +1,4 @@
# Radio bridge
# Radio Bridge
Transfer the packet data received from the radio to the serial port. Use buttons **A** and **B** to select a radio group number.

View File

@ -1,4 +1,3 @@
# Reaction Time
## @description A reaction time experiment made of cardboard

View File

@ -1,4 +1,4 @@
# Servo calibrator
# Servo Calibrator
Use this program to calibrate the angles of a servo.
Press ``A`` to reduce the angle by 5 and ``B`` to

View File

@ -1,4 +1,4 @@
# Snap the dot
# Snap the Dot
## Introduction @unplugged

View File

@ -1,4 +1,3 @@
# States of Matter
## @description A states of matter experiment made of cardboard

View File

@ -1,4 +1,4 @@
# Step counter
# Step Counter
![A @boardname@ attached on a foot](/static/mb/projects/step-counter.png)

View File

@ -1,4 +1,4 @@
# Countdown timer
# Countdown Timer
### ~avatar avatar