fixed banana
This commit is contained in:
parent
8da3c5eb84
commit
2fb6025848
@ -79,7 +79,18 @@ Your banana keyboard is ready!
|
|||||||
|
|
||||||
### Step 10
|
### Step 10
|
||||||
|
|
||||||
Connect your micro:bit to your computer using your USB cable and run the [banana keyboard](/lhpkbr) script on it. Tap your banana instrument to play sound against... the fruit!
|
Connect your micro:bit to your computer using your USB cable and run this script:
|
||||||
|
```blocks
|
||||||
|
let sound = music.noteFrequency(Note.C);
|
||||||
|
input.onPinPressed(TouchPin.P1, () => {
|
||||||
|
for (let i = 0; i < 5; i++) {
|
||||||
|
sound = sound + 25;
|
||||||
|
music.playTone(sound, music.beat(BeatFraction.Sixteenth));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
Tap your banana instrument to play sound against... the fruit!
|
||||||
|
|
||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
# crocodile clip activity
|
|
||||||
|
|
||||||
Use the crocodile clips
|
|
||||||
|
|
||||||
# micro:bit crocodile clip
|
|
||||||
|
|
||||||
![](/static/mb/blocks/lessons/crocodile-clip-0.jpg)
|
|
||||||
|
|
||||||
In this project, you will build a circuit with the micro:bit from crocodile clips. Project duration: 15 minutes.
|
|
||||||
|
|
||||||
## Materials
|
|
||||||
|
|
||||||
* micro:bit, battery holder and 2 AAA batteries
|
|
||||||
* Crocodile clips
|
|
||||||
|
|
||||||
## Steps
|
|
||||||
|
|
||||||
### Step 1
|
|
||||||
|
|
||||||
![](/static/mb/lessons/banana-keyboard-1.png)
|
|
||||||
|
|
||||||
Using the 1st crocodile clip, connect the end of the crocodile clip onto GND pin on the micro:bit.
|
|
||||||
|
|
||||||
### Step 2
|
|
||||||
|
|
||||||
![](/static/mb/crocodile-clips-2.jpg)
|
|
||||||
|
|
||||||
Using the 1st crocodile clip, connect the unattached end of the crocodile clip onto the 0 pin on the micro:bit.
|
|
||||||
|
|
||||||
### Step 3
|
|
||||||
|
|
||||||
![](/static/mb/blocks/lessons/crocodile-clip-0.jpg)
|
|
||||||
|
|
||||||
Disconnect the end of the crocodile clip from the 0 pin of the micro:bit.
|
|
||||||
|
|
||||||
Your circuit is complete!
|
|
||||||
|
|
||||||
### Step 10
|
|
||||||
|
|
||||||
Connect your micro:bit to your computer using your USB cable and run the [guess the number](/lhpkbr) script on it.
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user