parent
eff4ccef56
commit
a81a36e0ca
@ -1,4 +1,4 @@
|
||||
# Banana keyboard
|
||||
# Banana Keyboard
|
||||
|
||||
## @description A beginner maker activity, building a piano from bananas.
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
# Fireflies
|
||||
|
||||
## ~ avatar
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
# Milk Monster
|
||||
|
||||
## @description A milky-monster like robot built with the @boardname@
|
||||
|
@ -1,6 +1,5 @@
|
||||
# Plant Watering
|
||||
|
||||
|
||||
## ~avatar avatar
|
||||
|
||||
Water your plants automatically!
|
||||
|
@ -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.
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
# Reaction Time
|
||||
|
||||
## @description A reaction time experiment made of cardboard
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Snap the dot
|
||||
# Snap the Dot
|
||||
|
||||
## Introduction @unplugged
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
# States of Matter
|
||||
|
||||
## @description A states of matter experiment made of cardboard
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Step counter
|
||||
# Step Counter
|
||||
|
||||
![A @boardname@ attached on a foot](/static/mb/projects/step-counter.png)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Countdown timer
|
||||
# Countdown Timer
|
||||
|
||||
### ~avatar avatar
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user