diff --git a/docs/lessons/banana-keyboard/activity.md b/docs/lessons/banana-keyboard/activity.md index 833e139e..c0ae3b58 100644 --- a/docs/lessons/banana-keyboard/activity.md +++ b/docs/lessons/banana-keyboard/activity.md @@ -79,7 +79,18 @@ Your banana keyboard is ready! ### 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 diff --git a/docs/lessons/crocodile-clip/activity.md b/docs/lessons/crocodile-clip/activity.md deleted file mode 100644 index cbc78f17..00000000 --- a/docs/lessons/crocodile-clip/activity.md +++ /dev/null @@ -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. -