batch fixing ](/microbit/ -> ](/ links
This commit is contained in:
parent
2e49901a7e
commit
d28efb3b84
@ -6,7 +6,7 @@ All the bits and pieces that make up your BBC micro:bit
|
|||||||
|
|
||||||
### LED Screen and Status LED
|
### LED Screen and Status LED
|
||||||
|
|
||||||
The red lights are [LEDs](/microbit/device/screen) (light emitting diodes) and form a 5 x 5 LED Screen.
|
The red lights are [LEDs](/device/screen) (light emitting diodes) and form a 5 x 5 LED Screen.
|
||||||
They can be set to on/off and the brightness can be controlled.
|
They can be set to on/off and the brightness can be controlled.
|
||||||
|
|
||||||
The yellow light on the back of the micro:bit is the status LED.
|
The yellow light on the back of the micro:bit is the status LED.
|
||||||
@ -51,15 +51,15 @@ Output is in milli-g. The device will also detect a small number of standard act
|
|||||||
|
|
||||||
The pins can be a form of input or output.
|
The pins can be a form of input or output.
|
||||||
There are labels for the input/output pins P0, P1, P2, which you can attach external sensors to such as thermometers or moisture detectors.
|
There are labels for the input/output pins P0, P1, P2, which you can attach external sensors to such as thermometers or moisture detectors.
|
||||||
You can read more about large and small pins [here](/microbit/device/pins).
|
You can read more about large and small pins [here](/device/pins).
|
||||||
|
|
||||||
### How do I connect the micro:bit to my computer?
|
### How do I connect the micro:bit to my computer?
|
||||||
|
|
||||||
Your micro:bit can be connected to your computer via a micro USB cable.
|
Your micro:bit can be connected to your computer via a micro USB cable.
|
||||||
Data can be sent and received between the micro:bit and the computer so programs
|
Data can be sent and received between the micro:bit and the computer so programs
|
||||||
can be downloaded from Windows, Macs and Chromebooks onto the micro:bit via this USB data connection.
|
can be downloaded from Windows, Macs and Chromebooks onto the micro:bit via this USB data connection.
|
||||||
You can read more information on how to run scripts on your micro:bit [here](/microbit/device/usb),
|
You can read more information on how to run scripts on your micro:bit [here](/device/usb),
|
||||||
and about the error messages you might get [here](/microbit/device/error-codes).
|
and about the error messages you might get [here](/device/error-codes).
|
||||||
|
|
||||||
### Powering your micro:bit
|
### Powering your micro:bit
|
||||||
|
|
||||||
|
@ -4,18 +4,18 @@ The micro:bit device #docs
|
|||||||
|
|
||||||
The micro:bit is a very capable device with many components:
|
The micro:bit is a very capable device with many components:
|
||||||
|
|
||||||
* [the USB connector](/microbit/device/usb)
|
* [the USB connector](/device/usb)
|
||||||
* [the LED screen](/microbit/device/screen)
|
* [the LED screen](/device/screen)
|
||||||
* [the buttons]
|
* [the buttons]
|
||||||
* [the accelerometer]
|
* [the accelerometer]
|
||||||
* [the compass]
|
* [the compass]
|
||||||
* [the pins](/microbit/device/pins)
|
* [the pins](/device/pins)
|
||||||
* [the battery plug]
|
* [the battery plug]
|
||||||
|
|
||||||
The micro:bit embodies many fundamental concepts in computer science. To learn more, read:
|
The micro:bit embodies many fundamental concepts in computer science. To learn more, read:
|
||||||
|
|
||||||
* [the micro:bit - a reactive system](/microbit/device/reactive)
|
* [the micro:bit - a reactive system](/device/reactive)
|
||||||
|
|
||||||
Sometimes, your micro:bit may display an error code. For more information, see:
|
Sometimes, your micro:bit may display an error code. For more information, see:
|
||||||
|
|
||||||
* [the error codes](/microbit/device/error-codes)
|
* [the error codes](/device/error-codes)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
The on pin pressed accessories.
|
The on pin pressed accessories.
|
||||||
|
|
||||||
Register an [event handler](/microbit/reference/event-handler) that will execute whenever the user attaches one side of the crocodile clip to the `GND` pin, then connects and disconnects the unattached side of the crocodile clip to pin `0`, `1`, or `2`.
|
Register an [event handler](/reference/event-handler) that will execute whenever the user attaches one side of the crocodile clip to the `GND` pin, then connects and disconnects the unattached side of the crocodile clip to pin `0`, `1`, or `2`.
|
||||||
|
|
||||||
### Example: on pin pressed with random numbers
|
### Example: on pin pressed with random numbers
|
||||||
|
|
||||||
@ -18,9 +18,9 @@ This example displays a random number every time the crocodile clip holds `GND`
|
|||||||
|
|
||||||
### Lessons
|
### Lessons
|
||||||
|
|
||||||
[love meter](/microbit/lessons/love-meter)
|
[love meter](/lessons/love-meter)
|
||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
[micro:bit pins](/microbit/device/pins), [pin is pressed](/microbit/reference/input/pin-is-pressed), [analog read pin](/microbit/reference/pins/analog-read-pin), [analog write pin](/microbit/reference/pins/analog-write-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin)
|
[micro:bit pins](/device/pins), [pin is pressed](/reference/input/pin-is-pressed), [analog read pin](/reference/pins/analog-read-pin), [analog write pin](/reference/pins/analog-write-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin)
|
||||||
|
|
||||||
|
@ -13,5 +13,5 @@ Below is a list of error numbers and what they mean:
|
|||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
[Run scripts on your micro:bit](/microbit/device/usb)
|
[Run scripts on your micro:bit](/device/usb)
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ The micro:bit is a *reactive system* – it reacts continuously to external even
|
|||||||
|
|
||||||
We want reactive systems to be responsive, which means to react in a timely manner to events. For example, when you play a computer game, it’s frustrating if you press a button to make a character jump, but it doesn’t immediately jump. A delay in reacting, or lack of responsiveness , can be the difference between life and death, both in the real and virtual worlds.
|
We want reactive systems to be responsive, which means to react in a timely manner to events. For example, when you play a computer game, it’s frustrating if you press a button to make a character jump, but it doesn’t immediately jump. A delay in reacting, or lack of responsiveness , can be the difference between life and death, both in the real and virtual worlds.
|
||||||
|
|
||||||
Let’s consider a simple example: you want to program your micro:bit to accurately count the number of times the A button has been pressed and continuously display the current count on the 5x5 [LED screen](/microbit/device/screen). Because the LED screen is small, we can only display one digit of a number at a time on it. The [show number](/microbit/reference/basic/show-number) function will scroll the digits of a number across the screen so you can read it.
|
Let’s consider a simple example: you want to program your micro:bit to accurately count the number of times the A button has been pressed and continuously display the current count on the 5x5 [LED screen](/device/screen). Because the LED screen is small, we can only display one digit of a number at a time on it. The [show number](/reference/basic/show-number) function will scroll the digits of a number across the screen so you can read it.
|
||||||
|
|
||||||
Let’s say that the current count is 42 and the number 42 is scrolling across the LED screen. This means there is some code executing to perform the scroll. So, what should happen if you press the A button during the scroll? It would be a bad idea to ignore the button press, so some code should record the occurrence of the button press. But we just said there already is code running in order to scroll the number 42! If we wait until the code scrolling the 42 has finished to look for a button press, we will miss the button press. We want to avoid this sort of unresponsiveness.
|
Let’s say that the current count is 42 and the number 42 is scrolling across the LED screen. This means there is some code executing to perform the scroll. So, what should happen if you press the A button during the scroll? It would be a bad idea to ignore the button press, so some code should record the occurrence of the button press. But we just said there already is code running in order to scroll the number 42! If we wait until the code scrolling the 42 has finished to look for a button press, we will miss the button press. We want to avoid this sort of unresponsiveness.
|
||||||
|
|
||||||
|
@ -30,15 +30,15 @@ Since the row and column numbers start at 0, an easy way to figure out the x, y
|
|||||||
|
|
||||||
### Turn a LED on/off
|
### Turn a LED on/off
|
||||||
|
|
||||||
Use [plot](/microbit/led/plot) and [unplot](/microbit/led/unplot) to turn a LED on or off
|
Use [plot](/led/plot) and [unplot](/led/unplot) to turn a LED on or off
|
||||||
|
|
||||||
### Is a LED on/off?
|
### Is a LED on/off?
|
||||||
|
|
||||||
Use the [point](/microbit/led/point) function to find out if a LED is on or off.
|
Use the [point](/led/point) function to find out if a LED is on or off.
|
||||||
|
|
||||||
### Display images, strings and numbers
|
### Display images, strings and numbers
|
||||||
|
|
||||||
Instead of turning individual LEDs on or off, as above, you can display an [image](/microbit/reference/image/image) directly to the screen or show text/numbers on screen using the [show number](/microbit/reference/basic/show-number)/[show string](/microbit/reference/basic/show-string) function.
|
Instead of turning individual LEDs on or off, as above, you can display an [image](/reference/image/image) directly to the screen or show text/numbers on screen using the [show number](/reference/basic/show-number)/[show string](/reference/basic/show-string) function.
|
||||||
|
|
||||||
### The display buffer
|
### The display buffer
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
How to compile, transfer, and run a script on your micro:bit.
|
How to compile, transfer, and run a script on your micro:bit.
|
||||||
|
|
||||||
While you're writing and testing your Block Editor or Touch Develop scripts, you'll mostly be running scripts in your browser by clicking the `Run` button (see [run code in your browser](/microbit/js/simulator) for info about this).
|
While you're writing and testing your Block Editor or Touch Develop scripts, you'll mostly be running scripts in your browser by clicking the `Run` button (see [run code in your browser](/js/simulator) for info about this).
|
||||||
|
|
||||||
Once your masterpiece is complete, you can compile your script and run it on your micro:bit.
|
Once your masterpiece is complete, you can compile your script and run it on your micro:bit.
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ WARN: unknown picture: bvabdbco:5x3
|
|||||||
|
|
||||||
### ~hide
|
### ~hide
|
||||||
|
|
||||||
If your computer doesn't recognise your micro:bit, please see [troubleshooting USB problems](/microbit/diagnosing-usb).
|
If your computer doesn't recognise your micro:bit, please see [troubleshooting USB problems](/diagnosing-usb).
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
@ -133,5 +133,5 @@ Or it may appear that there are two hex files on your micro:bit so the micro:bit
|
|||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
[Run code in a browser](/microbit/js/simulator)
|
[Run code in a browser](/js/simulator)
|
||||||
|
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
Welcome to the documentation.
|
Welcome to the documentation.
|
||||||
|
|
||||||
* Browse the [reference](/microbit/reference)
|
* Browse the [reference](/reference)
|
||||||
* Learn more about the [device](/microbit/device)
|
* Learn more about the [device](/device)
|
||||||
* Get started with [lessons](/microbit/lessons)
|
* Get started with [lessons](/lessons)
|
||||||
|
@ -7,19 +7,19 @@
|
|||||||
|
|
||||||
## Beginner
|
## Beginner
|
||||||
|
|
||||||
* [Beautiful Image](/microbit/lessons/beautiful-image), show a beautiful image with show LEDs
|
* [Beautiful Image](/lessons/beautiful-image), show a beautiful image with show LEDs
|
||||||
* [Lucky 7](/microbit/lessons/lucky-7), show a number on the LED screen with show number
|
* [Lucky 7](/lessons/lucky-7), show a number on the LED screen with show number
|
||||||
* [Answering Machine](/microbit/lessons/answering-machine), show a text message with show string
|
* [Answering Machine](/lessons/answering-machine), show a text message with show string
|
||||||
* [Game of Chance](/microbit/lessons/game-of-chance), show a text message with game over
|
* [Game of Chance](/lessons/game-of-chance), show a text message with game over
|
||||||
* [Smiley,](/microbit/lessons/smiley) smiley and frowney faces that transition on button pressed
|
* [Smiley,](/lessons/smiley) smiley and frowney faces that transition on button pressed
|
||||||
* [Magic Logo,](/microbit/lessons/magic-logo) show an image on logo up
|
* [Magic Logo,](/lessons/magic-logo) show an image on logo up
|
||||||
* [Snowflake Fall](/microbit/lessons/snowflake-fall), repeat a series of images with forever
|
* [Snowflake Fall](/lessons/snowflake-fall), repeat a series of images with forever
|
||||||
* [Screen Wipe](/microbit/lessons/screen-wipe), turn off the LEDs with clear screen
|
* [Screen Wipe](/lessons/screen-wipe), turn off the LEDs with clear screen
|
||||||
* [Flashing Heart](/microbit/lessons/flashing-heart), display images with a pause
|
* [Flashing Heart](/lessons/flashing-heart), display images with a pause
|
||||||
* [Blink](/microbit/lessons/blink), turn an LED on and off with plot
|
* [Blink](/lessons/blink), turn an LED on and off with plot
|
||||||
* [Night Light](/microbit/lessons/night-light), dim the LEDs with set brightness
|
* [Night Light](/lessons/night-light), dim the LEDs with set brightness
|
||||||
* [Game Counter](/microbit/lessons/game-counter), displays the player's score with score and add points to score
|
* [Game Counter](/lessons/game-counter), displays the player's score with score and add points to score
|
||||||
* [Happy Birthday](/microbit/lessons/happy-birthday), create a popular song
|
* [Happy Birthday](/lessons/happy-birthday), create a popular song
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
@ -27,46 +27,46 @@
|
|||||||
|
|
||||||
## Intermediate
|
## Intermediate
|
||||||
|
|
||||||
* [Magic 8](/microbit/lessons/magic-8), a fortune teller game with the BBC micro:bit
|
* [Magic 8](/lessons/magic-8), a fortune teller game with the BBC micro:bit
|
||||||
* [Guess the Number](/microbit/lessons/guess-the-number), guess a random number with pick number
|
* [Guess the Number](/lessons/guess-the-number), guess a random number with pick number
|
||||||
* [Counter](/microbit/lessons/counter), display a number with a variable
|
* [Counter](/lessons/counter), display a number with a variable
|
||||||
* [Love Meter](/microbit/lessons/love-meter), create a love meter with on pin pressed
|
* [Love Meter](/lessons/love-meter), create a love meter with on pin pressed
|
||||||
* [Rock Paper Scissors](/microbit/lessons/rock-paper-scissors), create the classic game of rock paper scissors with if statement
|
* [Rock Paper Scissors](/lessons/rock-paper-scissors), create the classic game of rock paper scissors with if statement
|
||||||
* [Truth or Dare](/microbit/lessons/truth-or-dare), a game that forces each player to reveal a secret or do something funny with if statement
|
* [Truth or Dare](/lessons/truth-or-dare), a game that forces each player to reveal a secret or do something funny with if statement
|
||||||
* [Spinner](/microbit/lessons/spinner), spin the arrow with multiple if statements
|
* [Spinner](/lessons/spinner), spin the arrow with multiple if statements
|
||||||
* [Die Roll](/microbit/lessons/die-roll), spin with more if statements
|
* [Die Roll](/lessons/die-roll), spin with more if statements
|
||||||
* [Looper](/microbit/lessons/looper), display a series of numbers with a for loop index
|
* [Looper](/lessons/looper), display a series of numbers with a for loop index
|
||||||
* [Strobe Light](/microbit/lessons/strobe-light), develop shapes with a nested for loops
|
* [Strobe Light](/lessons/strobe-light), develop shapes with a nested for loops
|
||||||
* [Temperature](/microbit/lessons/temperature), get the ambient temperature (degree Celsius °C)
|
* [Temperature](/lessons/temperature), get the ambient temperature (degree Celsius °C)
|
||||||
* [Digi Yoyo](/microbit/lessons/digi-yoyo), create a counter with a while loop
|
* [Digi Yoyo](/lessons/digi-yoyo), create a counter with a while loop
|
||||||
* [Rotation Animation](/microbit/lessons/rotation-animation), control an animation with a boolean variable
|
* [Rotation Animation](/lessons/rotation-animation), control an animation with a boolean variable
|
||||||
* [Compass](/microbit/lessons/compass), displays the direction the BBC micro:bit is pointing with compass
|
* [Compass](/lessons/compass), displays the direction the BBC micro:bit is pointing with compass
|
||||||
* [Zoomer](/microbit/lessons/zoomer), measure the force with acceleration
|
* [Zoomer](/lessons/zoomer), measure the force with acceleration
|
||||||
* [Glowing Pendulum](/microbit/lessons/glowing-pendulum), construct a pendulum that glows using acceleration
|
* [Glowing Pendulum](/lessons/glowing-pendulum), construct a pendulum that glows using acceleration
|
||||||
* [Classic Beatbox](/microbit/lessons/classic-beatbox), make a beatbox music player with variables
|
* [Classic Beatbox](/lessons/classic-beatbox), make a beatbox music player with variables
|
||||||
* [Light Beatbox](/microbit/lessons/light-beatbox), make a beatbox music player with light level
|
* [Light Beatbox](/lessons/light-beatbox), make a beatbox music player with light level
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
### ~column
|
### ~column
|
||||||
|
|
||||||
## Maker
|
## Maker
|
||||||
* [The Watch](/microbit/lessons/the-watch), design and create The Watch
|
* [The Watch](/lessons/the-watch), design and create The Watch
|
||||||
* [Hack your Headphones](/microbit/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones
|
* [Hack your Headphones](/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones
|
||||||
* [Banana Keyboard](/microbit/lessons/banana-keyboard), create music with fruits
|
* [Banana Keyboard](/lessons/banana-keyboard), create music with fruits
|
||||||
* [Telegraph](/microbit/lessons/telegraph), play the telegraph game between two BBC micro:bits
|
* [Telegraph](/lessons/telegraph), play the telegraph game between two BBC micro:bits
|
||||||
* [Pogo](/microbit/lessons/pogo), create a pogo game to test your jumping abilities
|
* [Pogo](/lessons/pogo), create a pogo game to test your jumping abilities
|
||||||
|
|
||||||
## Advanced
|
## Advanced
|
||||||
* [Charting](/microbit/lessons/charting), create a charting app between 2 BBC micro:bits
|
* [Charting](/lessons/charting), create a charting app between 2 BBC micro:bits
|
||||||
* [Prank WiFi](/microbit/lessons/prank-wifi), create fake WiFi to trick your friends
|
* [Prank WiFi](/lessons/prank-wifi), create fake WiFi to trick your friends
|
||||||
* [Speed Button](/microbit/lessons/speed-button), code a speed game with running time
|
* [Speed Button](/lessons/speed-button), code a speed game with running time
|
||||||
* [Headbands](/microbit/lessons/headbands), create a charades game with a collection of strings that hold the words
|
* [Headbands](/lessons/headbands), create a charades game with a collection of strings that hold the words
|
||||||
* [Hero](/microbit/lessons/hero), reconstruct the classic arcade game pac man with the BBC micro:bit
|
* [Hero](/lessons/hero), reconstruct the classic arcade game pac man with the BBC micro:bit
|
||||||
* [Catch the Egg](/microbit/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller
|
* [Catch the Egg](/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
### @section full
|
### @section full
|
||||||
|
|
||||||
The lessons promote computational thinking and computer science literacy[ read more...](/microbit/lessons/teach)
|
The lessons promote computational thinking and computer science literacy[ read more...](/lessons/teach)
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ Show String
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/answering-machine/activity)
|
* [activity](/lessons/answering-machine/activity)
|
||||||
* [quiz](/microbit/lessons/answering-machine/quiz)
|
* [quiz](/lessons/answering-machine/quiz)
|
||||||
* [quiz answers](/microbit/lessons/answering-machine/quiz-answers)
|
* [quiz answers](/lessons/answering-machine/quiz-answers)
|
||||||
* [challenges](/microbit/lessons/answering-machine/challenges)
|
* [challenges](/lessons/answering-machine/challenges)
|
||||||
|
|
||||||
|
|
||||||
## Prior learning / place of lesson in scheme of work
|
## Prior learning / place of lesson in scheme of work
|
||||||
@ -29,7 +29,7 @@ input.onButtonPressed(Button.A, () => {})
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed)
|
* **on button pressed** : [read more...](/reference/input/on-button-pressed)
|
||||||
|
|
||||||
## Objectives
|
## Objectives
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ basic.showString("ASK ME A QUESTION")
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/answering-machine/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/answering-machine/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the answering machine tutorial.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [answering machine](/microbit/lessons/answering-machine/activity) activity and your code will look like this:
|
Complete the [answering machine](/lessons/answering-machine/activity) activity and your code will look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
basic.showString("ASK ME A QUESTION")
|
basic.showString("ASK ME A QUESTION")
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Create an answering machine on the micro:bit.
|
Create an answering machine on the micro:bit.
|
||||||
|
|
||||||
This is the answer key for the [answering machine quiz](/microbit/lessons/answering-machine/quiz).
|
This is the answer key for the [answering machine quiz](/lessons/answering-machine/quiz).
|
||||||
|
|
||||||
## 1. Define what `show string` does?
|
## 1. Define what `show string` does?
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Create an answering machine on the micro:bit.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [answering machine activity](/microbit/lessons/answering-machine/activity).
|
Use this activity document to guide your work in the [answering machine activity](/lessons/answering-machine/activity).
|
||||||
|
|
||||||
Answer the questions while completing the activity. Pay attention to the dialogues!
|
Answer the questions while completing the activity. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ Music
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/banana-keyboard/activity)
|
* [activity](/lessons/banana-keyboard/activity)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -79,11 +79,11 @@ 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](/microbit/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 the [banana keyboard](/lhpkbr) script on it. Tap your banana instrument to play sound against... the fruit!
|
||||||
|
|
||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/banana-keyboard/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/banana-keyboard/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
@ -6,7 +6,7 @@ control images with variables.
|
|||||||
|
|
||||||
Control images with variables.
|
Control images with variables.
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
Have you ever tried to making beat box sounds? Let's try making a beatbox with code!
|
Have you ever tried to making beat box sounds? Let's try making a beatbox with code!
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ Music
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/beatbox/activity)
|
* [activity](/lessons/beatbox/activity)
|
||||||
* [challenges](/microbit/lessons/beatbox/challenges)
|
* [challenges](/lessons/beatbox/challenges)
|
||||||
|
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
@ -10,8 +10,8 @@ Show LEDs
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/beautiful-image/activity)
|
* [activity](/lessons/beautiful-image/activity)
|
||||||
* [challenges](/microbit/lessons/beautiful-image/challenges)
|
* [challenges](/lessons/beautiful-image/challenges)
|
||||||
|
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
@ -10,7 +10,7 @@ Let's learn how to show an image on the LED screen.
|
|||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under the *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under the *Block Editor*.
|
||||||
|
|
||||||
We will use *show LEDs* to draw an image on the LED screen. This function immediately writes on the screen.
|
We will use *show LEDs* to draw an image on the LED screen. This function immediately writes on the screen.
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ basic.showLeds(`
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/beautiful-image/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/beautiful-image/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the beautiful image tutorial.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [beautiful image](/microbit/lessons/beautiful-image/activity) activity and your code will look like this:
|
Complete the [beautiful image](/lessons/beautiful-image/activity) activity and your code will look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
basic.showLeds(`
|
basic.showLeds(`
|
||||||
|
@ -10,10 +10,10 @@ Plot
|
|||||||
|
|
||||||
## Quick links
|
## Quick links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/blink/activity)
|
* [activity](/lessons/blink/activity)
|
||||||
* [quiz](/microbit/lessons/blink/quiz)
|
* [quiz](/lessons/blink/quiz)
|
||||||
* [quiz answers](/microbit/lessons/blink/quiz-answers)
|
* [quiz answers](/lessons/blink/quiz-answers)
|
||||||
* [challenges](/microbit/lessons/blink/challenges)
|
* [challenges](/lessons/blink/challenges)
|
||||||
|
|
||||||
|
|
||||||
## Prior learning / place of lesson in scheme of work
|
## Prior learning / place of lesson in scheme of work
|
||||||
|
@ -6,7 +6,7 @@ Turn an LED on and off with forever
|
|||||||
|
|
||||||
### @video td/videos/blink-0
|
### @video td/videos/blink-0
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ basic.forever(() => {
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/blink/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/blink/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the blink tutorial
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [blink](/microbit/lessons/blink/activity) activity and your code will look like this:
|
Complete the [blink](/lessons/blink/activity) activity and your code will look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
basic.forever(() => {
|
basic.forever(() => {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Learn how to create a blinking LED script.
|
Learn how to create a blinking LED script.
|
||||||
|
|
||||||
This is the answer key for the [blink quiz](/microbit/lessons/blink/quiz).
|
This is the answer key for the [blink quiz](/lessons/blink/quiz).
|
||||||
|
|
||||||
## 1. Describe what `plot` does?
|
## 1. Describe what `plot` does?
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Learn how to create a blinking LED script.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [blink activity](/microbit/lessons/blink/activity).
|
Use this activity document to guide your work in the [blink activity](/lessons/blink/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ a game where you have to keep up with the commands.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [bop it tutorial](/microbit/lessons/bop-it/tutorial).
|
Use this activity document to guide your work in the [bop it tutorial](/lessons/bop-it/tutorial).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ a game where you have to keep up with the commands.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [bop it tutorial](/microbit/lessons/bop-it/tutorial).
|
Use this activity document to guide your work in the [bop it tutorial](/lessons/bop-it/tutorial).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ Ring
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/buzzer/activity)
|
* [activity](/lessons/buzzer/activity)
|
||||||
* [challenges](/microbit/lessons/buzzer/challenges)
|
* [challenges](/lessons/buzzer/challenges)
|
||||||
|
|
||||||
## Class
|
## Class
|
||||||
|
|
||||||
@ -21,9 +21,9 @@ Learn how to **ring** the buzzer to turn on the sound. We will be learning basic
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
* **ring** : [read more...](/microbit/reference/music/ring)
|
* **ring** : [read more...](/reference/music/ring)
|
||||||
* **clear screen** : [read more...](/microbit/reference/basic/clear-screen)
|
* **clear screen** : [read more...](/reference/basic/clear-screen)
|
||||||
* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed)
|
* **on button pressed** : [read more...](/reference/input/on-button-pressed)
|
||||||
|
|
||||||
## Objectives
|
## Objectives
|
||||||
|
|
||||||
@ -68,14 +68,14 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor
|
|||||||
## Activity
|
## Activity
|
||||||
|
|
||||||
* time: 20 min.
|
* time: 20 min.
|
||||||
* [activity](/microbit/lessons/buzzer/activity)
|
* [activity](/lessons/buzzer/activity)
|
||||||
|
|
||||||
## Extended Activity
|
## Extended Activity
|
||||||
|
|
||||||
* time: 20 min.
|
* time: 20 min.
|
||||||
* [challenges](/microbit/lessons/buzzer/challenges)
|
* [challenges](/lessons/buzzer/challenges)
|
||||||
|
|
||||||
## Homework
|
## Homework
|
||||||
|
|
||||||
* Extended Activity: [challenges](/microbit/lessons/buzzer/challenges)
|
* Extended Activity: [challenges](/lessons/buzzer/challenges)
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@ Variables
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/catch-the-egg-game/activity)
|
* [activity](/lessons/catch-the-egg-game/activity)
|
||||||
* [quiz](/microbit/lessons/catch-the-egg-game/quiz)
|
* [quiz](/lessons/catch-the-egg-game/quiz)
|
||||||
* [quiz answers](/microbit/lessons/catch-the-egg-game/quiz-answers)
|
* [quiz answers](/lessons/catch-the-egg-game/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
@ -20,18 +20,18 @@ Learn how to create a catch the egg game game with **plot**, `led->plot` , **unp
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
* **variables** : [read more...](/microbit/reference/variables/var)
|
* **variables** : [read more...](/reference/variables/var)
|
||||||
* **forever** : [read more...](/microbit/reference/basic/forever)
|
* **forever** : [read more...](/reference/basic/forever)
|
||||||
* **unplot** : [read more...](/microbit/reference/led/unplot)
|
* **unplot** : [read more...](/reference/led/unplot)
|
||||||
* **plot** : [read more...](/microbit/reference/led/plot)
|
* **plot** : [read more...](/reference/led/plot)
|
||||||
* **if** : [read more...](/microbit/reference/logic/if)
|
* **if** : [read more...](/reference/logic/if)
|
||||||
* **acceleration** : [read more...](/microbit/reference/input/acceleration)
|
* **acceleration** : [read more...](/reference/input/acceleration)
|
||||||
* **math minimum number** : [read more...](/microbit/js/math)
|
* **math minimum number** : [read more...](/js/math)
|
||||||
* **math maximum number** : [read more...](/microbit/js/math)
|
* **math maximum number** : [read more...](/js/math)
|
||||||
* **math random number** : [read more...](/microbit/js/math)
|
* **math random number** : [read more...](/js/math)
|
||||||
* **math modulus** : [read more...](/microbit/js/math)
|
* **math modulus** : [read more...](/js/math)
|
||||||
* **show number** : [read more...](/microbit/reference/basic/show-number)
|
* **show number** : [read more...](/reference/basic/show-number)
|
||||||
* **pause** : [read more...](/microbit/reference/basic/pause)
|
* **pause** : [read more...](/reference/basic/pause)
|
||||||
|
|
||||||
## Objectives
|
## Objectives
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Programming a game of catch the egg using the accelerometer
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [catch the egg tutorial](/microbit/lessons/catch-the-egg-game/tutorial)
|
Use this activity document to guide your work in the [catch the egg tutorial](/lessons/catch-the-egg-game/tutorial)
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Programming a game of catch the egg using the accelerometer.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [catch the egg challenges](/microbit/lessons/catch-the-egg-game/activity)
|
Use this activity document to guide your work in the [catch the egg challenges](/lessons/catch-the-egg-game/activity)
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Create a timer that runs out after a certain amount of time (using the *count* l
|
|||||||
|
|
||||||
## Graphics Challenges [3]
|
## Graphics Challenges [3]
|
||||||
|
|
||||||
Using the knowledge you have learnt from the [rendering graphics](/microbit/lessons/graphics) section, try creating an algorithm to draw these shapes. Before you write the code try to figure out how the BBC micro:bit will be thinking to plot these points. For example, with our diagonal line – “count up from 0 to 4 by 1, and plot points x=i and y=i”.
|
Using the knowledge you have learnt from the [rendering graphics](/lessons/graphics) section, try creating an algorithm to draw these shapes. Before you write the code try to figure out how the BBC micro:bit will be thinking to plot these points. For example, with our diagonal line – “count up from 0 to 4 by 1, and plot points x=i and y=i”.
|
||||||
|
|
||||||
* Another diagonal line
|
* Another diagonal line
|
||||||
* A square going around the board
|
* A square going around the board
|
||||||
|
@ -8,7 +8,7 @@ Acceleration
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/charting/activity)
|
* [activity](/lessons/charting/activity)
|
||||||
|
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
@ -4,7 +4,7 @@ Measure the acceleration on the micro:bit in the "z" direction.
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`.
|
To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`.
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ Music
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/classic-beatbox/activity)
|
* [activity](/lessons/classic-beatbox/activity)
|
||||||
* [challenges](/microbit/lessons/classic-beatbox/challenges)
|
* [challenges](/lessons/classic-beatbox/challenges)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Control images with variables.
|
Control images with variables.
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
Have you ever tried to making beat box sounds? Let's try making a beatbox with code!
|
Have you ever tried to making beat box sounds? Let's try making a beatbox with code!
|
||||||
|
|
||||||
@ -51,6 +51,6 @@ input.onPinPressed(TouchPin.P1, () => {
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/classic-beatbox/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/classic-beatbox/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
@ -4,7 +4,7 @@ Create sounds with variables.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [beatbox](/microbit/lessons/beatbox/activity) activity and your code will look like this:
|
Complete the [beatbox](/lessons/beatbox/activity) activity and your code will look like this:
|
||||||
|
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
|
@ -10,10 +10,10 @@ If (Conditionals)
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/compass/activity)
|
* [activity](/lessons/compass/activity)
|
||||||
* [challenges](/microbit/lessons/compass/challenges)
|
* [challenges](/lessons/compass/challenges)
|
||||||
* [quiz](/microbit/lessons/compass/quiz)
|
* [quiz](/lessons/compass/quiz)
|
||||||
* [quiz answers](/microbit/lessons/compass/quiz-answers)
|
* [quiz answers](/lessons/compass/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ basic.forever(() => {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/compass/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/compass/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Display the direction that the micro:bit is facing using the compass
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [guided tutorial](/microbit/lessons/compass/activity), your code should look like this:
|
Complete the following [guided tutorial](/lessons/compass/activity), your code should look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
let degrees = 0;
|
let degrees = 0;
|
||||||
|
@ -6,7 +6,7 @@ Create an actual compass to show your direction: North, South, East, or West
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [compass tutorial](/microbit/lessons/compass/activity).
|
Use this activity document to guide your work in the [compass tutorial](/lessons/compass/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Create an actual compass to show your direction: North, South, East, or West
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [compass activity](/microbit/lessons/compass/activity).
|
Use this activity document to guide your work in the [compass activity](/lessons/compass/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ Variables
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/counter/activity)
|
* [activity](/lessons/counter/activity)
|
||||||
* [challenges](/microbit/lessons/counter/challenges)
|
* [challenges](/lessons/counter/challenges)
|
||||||
* [quiz](/microbit/lessons/counter/quiz)
|
* [quiz](/lessons/counter/quiz)
|
||||||
* [quiz answers](/microbit/lessons/counter/quiz-answers)
|
* [quiz answers](/lessons/counter/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
@ -36,10 +36,10 @@ basic.showLeds(`
|
|||||||
`)
|
`)
|
||||||
```
|
```
|
||||||
|
|
||||||
* **variable**: [read more...](/microbit/reference/variables/var)
|
* **variable**: [read more...](/reference/variables/var)
|
||||||
* **arithmetic operators**: [read more...](/microbit/reference/types/number)
|
* **arithmetic operators**: [read more...](/reference/types/number)
|
||||||
* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed)
|
* **on button pressed** : [read more...](/reference/input/on-button-pressed)
|
||||||
* **show number** : [read more...](/microbit/reference/basic/show-number)
|
* **show number** : [read more...](/reference/basic/show-number)
|
||||||
|
|
||||||
## Objectives
|
## Objectives
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/counter/challenges)
|
Excellent, you're ready to continue with the [challenges](/lessons/counter/challenges)
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the counter.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [guided tutorial](/microbit/lessons/counter/activity) At the end of the tutorial, click **keep editing**. Your code should look like this:
|
Complete the following [guided tutorial](/lessons/counter/activity) At the end of the tutorial, click **keep editing**. Your code should look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
let count = 0
|
let count = 0
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Learn how to create a counter with the BBC micro:bit button.
|
Learn how to create a counter with the BBC micro:bit button.
|
||||||
|
|
||||||
This is the answer key for the [counter quiz](/microbit/lessons/counter/quiz).
|
This is the answer key for the [counter quiz](/lessons/counter/quiz).
|
||||||
|
|
||||||
## 1. What is a variable?
|
## 1. What is a variable?
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Learn how to create a counter with the BBC micro:bit button.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [counter tutorial](/microbit/lessons/counter/activity).
|
Use this activity document to guide your work in the [counter tutorial](/lessons/counter/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -37,5 +37,5 @@ Your circuit is complete!
|
|||||||
|
|
||||||
### Step 10
|
### Step 10
|
||||||
|
|
||||||
Connect your micro:bit to your computer using your USB cable and run the [guess the number](/microbit/lhpkbr) script on it.
|
Connect your micro:bit to your computer using your USB cable and run the [guess the number](/lhpkbr) script on it.
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ If (Conditionals)
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/die-roll/activity)
|
* [activity](/lessons/die-roll/activity)
|
||||||
* [challenges](/microbit/lessons/die-roll/challenges)
|
* [challenges](/lessons/die-roll/challenges)
|
||||||
* [quiz](/microbit/lessons/die-roll/quiz)
|
* [quiz](/lessons/die-roll/quiz)
|
||||||
* [quiz answers](/microbit/lessons/die-roll/quiz-answers)
|
* [quiz answers](/lessons/die-roll/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ input.onGesture(Gesture.Shake, () => {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/die-roll/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/die-roll/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Create a die on the micro:bit.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [guided tutorial](/microbit/lessons/die-roll/activity), your code should look like this:
|
Complete the following [guided tutorial](/lessons/die-roll/activity), your code should look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
input.onGesture(Gesture.Shake, () => {
|
input.onGesture(Gesture.Shake, () => {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Create a die when the BBC micro:bit is shaken
|
Create a die when the BBC micro:bit is shaken
|
||||||
|
|
||||||
These are the answers to the [die roll quiz](/microbit/lessons/die-roll/quiz).
|
These are the answers to the [die roll quiz](/lessons/die-roll/quiz).
|
||||||
|
|
||||||
## 1. Create a variable named 'roll' that will be randomly assigned to a number between 0 and 5.
|
## 1. Create a variable named 'roll' that will be randomly assigned to a number between 0 and 5.
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Create a die when the BBC micro:bit is shaken
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [die roll tutorial](/microbit/lessons/die-roll/activity).
|
Use this activity document to guide your work in the [die roll tutorial](/lessons/die-roll/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ While Loop
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/digi-yoyo/activity)
|
* [activity](/lessons/digi-yoyo/activity)
|
||||||
* [challenges](/microbit/lessons/digi-yoyo/challenges)
|
* [challenges](/lessons/digi-yoyo/challenges)
|
||||||
* [quiz](/microbit/lessons/digi-yoyo/quiz)
|
* [quiz](/lessons/digi-yoyo/quiz)
|
||||||
* [quiz answers](/microbit/lessons/digi-yoyo/quiz-answers)
|
* [quiz answers](/lessons/digi-yoyo/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ while (count < 10) {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/digi-yoyo/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/digi-yoyo/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the digi yoyo.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [guided tutorial](/microbit/lessons/digi-yoyo/activity), your code should look like this:
|
Complete the following [guided tutorial](/lessons/digi-yoyo/activity), your code should look like this:
|
||||||
|
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Answers for digi yoyo quiz.
|
Answers for digi yoyo quiz.
|
||||||
|
|
||||||
This is the answer key for the [digi yoyo quiz](/microbit/lessons/digi-yoyo/quiz).
|
This is the answer key for the [digi yoyo quiz](/lessons/digi-yoyo/quiz).
|
||||||
|
|
||||||
## 1. Describe what a "while loop" does?
|
## 1. Describe what a "while loop" does?
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Create a counter with a while loop
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [digi yoyo tutorial](/microbit/lessons/digi-yoyo/activity)
|
Use this activity document to guide your work in the [digi yoyo tutorial](/lessons/digi-yoyo/activity)
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ Pause
|
|||||||
|
|
||||||
## Quick links
|
## Quick links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/flashing-heart/activity)
|
* [activity](/lessons/flashing-heart/activity)
|
||||||
* [quiz](/microbit/lessons/flashing-heart/quiz)
|
* [quiz](/lessons/flashing-heart/quiz)
|
||||||
* [quiz answers](/microbit/lessons/flashing-heart/quiz-answers)
|
* [quiz answers](/lessons/flashing-heart/quiz-answers)
|
||||||
* [challenges](/microbit/lessons/flashing-heart/challenges)
|
* [challenges](/lessons/flashing-heart/challenges)
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
Learn how to `show LEDs` by showing an image on the LED screen. We will be learning how to create a blinking app using a forever loop as well as simple commands, such as show LEDs, pause, and clear screen.
|
Learn how to `show LEDs` by showing an image on the LED screen. We will be learning how to create a blinking app using a forever loop as well as simple commands, such as show LEDs, pause, and clear screen.
|
||||||
|
@ -10,7 +10,7 @@ In this activity, you will learn how to blink an image on the LED screen.
|
|||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
Let's start by adding code that plots a heart image on the screen using `show LEDs`. Once you are done coding, don't forget to run your code in the simulator or the micro:bit.
|
Let's start by adding code that plots a heart image on the screen using `show LEDs`. Once you are done coding, don't forget to run your code in the simulator or the micro:bit.
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ basic.forever(() => {
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/flashing-heart/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/flashing-heart/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the flashing heart tutorial.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [flashing heart](/microbit/lessons/flashing-heart/activity) activity and your code will look like this:
|
Complete the [flashing heart](/lessons/flashing-heart/activity) activity and your code will look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
basic.forever(() => {
|
basic.forever(() => {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Learn how to create an image with a variable.
|
Learn how to create an image with a variable.
|
||||||
|
|
||||||
This is the answer key for the [flashing heart quiz](/microbit/lessons/flashing-heart/quiz).
|
This is the answer key for the [flashing heart quiz](/lessons/flashing-heart/quiz).
|
||||||
|
|
||||||
## 1. Describe what pause does
|
## 1. Describe what pause does
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Learn how to create a blinking image with a variable.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [flashing heart activity](/microbit/lessons/flashing-heart/activity).
|
Use this activity document to guide your work in the [flashing heart activity](/lessons/flashing-heart/activity).
|
||||||
|
|
||||||
Answer the questions while completing the activity. Pay attention to the dialogues!
|
Answer the questions while completing the activity. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ Game Library
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/game-counter/activity)
|
* [activity](/lessons/game-counter/activity)
|
||||||
* [challenges](/microbit/lessons/game-counter/challenges)
|
* [challenges](/lessons/game-counter/challenges)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Turn an LED on and off with forever loop
|
|||||||
|
|
||||||
### @video td/videos/counter-0
|
### @video td/videos/counter-0
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/game-counter/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/game-counter/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the game counter.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [activity](/microbit/lessons/game-counter/activity) . Your code should look like this:
|
Complete the following [activity](/lessons/game-counter/activity) . Your code should look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
input.onButtonPressed(Button.A, () => {
|
input.onButtonPressed(Button.A, () => {
|
||||||
|
@ -8,8 +8,8 @@ Game Library
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/game-of-chance/activity)
|
* [activity](/lessons/game-of-chance/activity)
|
||||||
* [challenges](/microbit/lessons/game-of-chance/challenges)
|
* [challenges](/lessons/game-of-chance/challenges)
|
||||||
|
|
||||||
## Prior learning / place of lesson in scheme of work
|
## Prior learning / place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ basic.showString("SELECT A BUTTON")
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/game-of-chance/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/game-of-chance/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the answering machine tutorial.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [game of chance](/microbit/lessons/game-of-chance/activity) activity and your code will look like this:
|
Complete the [game of chance](/lessons/game-of-chance/activity) activity and your code will look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
basic.showString("SELECT A BUTTON")
|
basic.showString("SELECT A BUTTON")
|
||||||
|
@ -8,10 +8,10 @@ Acceleration
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/glowing-pendulum/activity)
|
* [activity](/lessons/glowing-pendulum/activity)
|
||||||
* [challenges](/microbit/lessons/glowing-pendulum/challenges)
|
* [challenges](/lessons/glowing-pendulum/challenges)
|
||||||
* [quiz](/microbit/lessons/glowing-pendulum/quiz)
|
* [quiz](/lessons/glowing-pendulum/quiz)
|
||||||
* [quiz answers](/microbit/lessons/glowing-pendulum/quiz-answers)
|
* [quiz answers](/lessons/glowing-pendulum/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Construct a pendulum that glows using acceleration.
|
Construct a pendulum that glows using acceleration.
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`.
|
To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`.
|
||||||
|
|
||||||
Welcome! This activity will teach how to construct a pendulum that glows using acceleration. Let's get started!
|
Welcome! This activity will teach how to construct a pendulum that glows using acceleration. Let's get started!
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ Let's show what the brightness of the micro:bit is by turning all the LEDs on!
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/glowing-pendulum/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/glowing-pendulum/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the glowing pendulum tutorial.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [glowing pendulum activity](/microbit/lessons/glowing-pendulum/activity) and your code should look like this:
|
Complete the following [glowing pendulum activity](/lessons/glowing-pendulum/activity) and your code should look like this:
|
||||||
|
|
||||||
![](/static/mb/blocks/lessons/glowing-pendulum-5.png)
|
![](/static/mb/blocks/lessons/glowing-pendulum-5.png)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ construct a pendulum that glows using acceleration.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [glowing pendulum tutorial](/microbit/lessons/glowing-pendulum/tutorial)
|
Use this activity document to guide your work in the [glowing pendulum tutorial](/lessons/glowing-pendulum/tutorial)
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ construct a pendulum that glows using acceleration.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [glowing pendulum tutorial](/microbit/lessons/glowing-pendulum/activity)
|
Use this activity document to guide your work in the [glowing pendulum tutorial](/lessons/glowing-pendulum/activity)
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ Fade Out
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/glowing-sword/activity)
|
* [activity](/lessons/glowing-sword/activity)
|
||||||
* [quiz](/microbit/lessons/glowing-sword/quiz)
|
* [quiz](/lessons/glowing-sword/quiz)
|
||||||
* [quiz answers](/microbit/lessons/glowing-sword/quiz-answers)
|
* [quiz answers](/lessons/glowing-sword/quiz-answers)
|
||||||
* [challenges](/microbit/lessons/glowing-sword/challenges)
|
* [challenges](/lessons/glowing-sword/challenges)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
@ -21,10 +21,10 @@ Learn how to manipulate an image through **fade out**, `fade out` to gradually d
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
* **create image** : [read more...](/microbit/reference/images/create-image)
|
* **create image** : [read more...](/reference/images/create-image)
|
||||||
* **show image** : [read more...](/microbit/reference/images/show-image)
|
* **show image** : [read more...](/reference/images/show-image)
|
||||||
* **fade out** : [read more...](/microbit/reference/led/fade-out)
|
* **fade out** : [read more...](/reference/led/fade-out)
|
||||||
* **pause** : [read more...](/microbit/reference/basic/pause)
|
* **pause** : [read more...](/reference/basic/pause)
|
||||||
* **fade in** : [read more...](/microbit/reference/led/fade-in)
|
* **fade in** : [read more...](/reference/led/fade-in)
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ Try devising an algorithm for a diagonal line using the code above and the varia
|
|||||||
|
|
||||||
![](/static/mb/blocks/lessons/graphics-3.png)
|
![](/static/mb/blocks/lessons/graphics-3.png)
|
||||||
|
|
||||||
We can create more complex algorithms for more complex shapes, too. See the [challenges](/microbit/lessons/challenges) section for additional graphical challenges and solutions.
|
We can create more complex algorithms for more complex shapes, too. See the [challenges](/lessons/challenges) section for additional graphical challenges and solutions.
|
||||||
|
|
||||||
### Animations
|
### Animations
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Animations are changes happening at a certain rate. For example, we could add th
|
|||||||
|
|
||||||
We could create more complex animations, for example we could make our BBC micro:bit display an explosion or fireworks.
|
We could create more complex animations, for example we could make our BBC micro:bit display an explosion or fireworks.
|
||||||
|
|
||||||
See the [challenges](/microbit/lessons/challenges) section for some animation tasks.
|
See the [challenges](/lessons/challenges) section for some animation tasks.
|
||||||
|
|
||||||
### Image variables
|
### Image variables
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ Math - Pick Random
|
|||||||
|
|
||||||
## Quick links
|
## Quick links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/guess-the-number/activity)
|
* [activity](/lessons/guess-the-number/activity)
|
||||||
* [challenges](/microbit/lessons/guess-the-number/challenges)
|
* [challenges](/lessons/guess-the-number/challenges)
|
||||||
* [quiz](/microbit/lessons/guess-the-number/quiz)
|
* [quiz](/lessons/guess-the-number/quiz)
|
||||||
* [quiz answers](/microbit/lessons/guess-the-number/quiz-answers)
|
* [quiz answers](/lessons/guess-the-number/quiz-answers)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/guess-the-number/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/guess-the-number/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for the guess the number tutorial.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the following [guided tutorial](/microbit/lessons/guess-the-number/activity), and your code should look like this:
|
Complete the following [guided tutorial](/lessons/guess-the-number/activity), and your code should look like this:
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
input.onButtonPressed(Button.A, () => {
|
input.onButtonPressed(Button.A, () => {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Learn how to generate a random number on the micro:bit.
|
Learn how to generate a random number on the micro:bit.
|
||||||
|
|
||||||
This is the answer key for the [guess the number quiz](/microbit/lessons/guess-the-number/quiz).
|
This is the answer key for the [guess the number quiz](/lessons/guess-the-number/quiz).
|
||||||
|
|
||||||
## 1. What is on button pressed?
|
## 1. What is on button pressed?
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Learn how to generate a random number on the micro:bit.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [guess the number tutorial](/microbit/lessons/guess-the-number/activity).
|
Use this activity document to guide your work in the [guess the number tutorial](/lessons/guess-the-number/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ Hack your headphone
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/hack-your-headphones/activity)
|
* [activity](/lessons/hack-your-headphones/activity)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -52,10 +52,10 @@ You hacked your headphones!
|
|||||||
|
|
||||||
### Step 6
|
### Step 6
|
||||||
|
|
||||||
Connect your micro:bit to your computer using your USB cable and program [light beatbox](/microbit/lessons/light-beatbox/activity) music on it. Press the reset button to restart your music player!
|
Connect your micro:bit to your computer using your USB cable and program [light beatbox](/lessons/light-beatbox/activity) music on it. Press the reset button to restart your music player!
|
||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/light-beatbox/activity)!
|
Excellent, you're ready to continue with the [challenges](/lessons/light-beatbox/activity)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
@ -8,8 +8,8 @@ Music
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/happy-birthday/activity)
|
* [activity](/lessons/happy-birthday/activity)
|
||||||
* [challenges](/microbit/lessons/happy-birthday/challenges)
|
* [challenges](/lessons/happy-birthday/challenges)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Play sounds with music blocks.
|
Play sounds with music blocks.
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`.
|
To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`.
|
||||||
|
|
||||||
Have you ever tried to play a song on an instrument? Let's try coding the song "Happy Birthday" on the micro:bit !
|
Have you ever tried to play a song on an instrument? Let's try coding the song "Happy Birthday" on the micro:bit !
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ basic.pause(100);
|
|||||||
|
|
||||||
### ~avatar boothing
|
### ~avatar boothing
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/happy-birthday/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/happy-birthday/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Coding challenges for finishing the song, happy birthday.
|
|||||||
|
|
||||||
## Before we get started
|
## Before we get started
|
||||||
|
|
||||||
Complete the [happy birthday](/microbit/lessons/happy-birthday/activity) activity and your code will look like this:
|
Complete the [happy birthday](/lessons/happy-birthday/activity) activity and your code will look like this:
|
||||||
|
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
|
@ -8,9 +8,9 @@ Collection
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/headbands/activity)
|
* [activity](/lessons/headbands/activity)
|
||||||
* [quiz](/microbit/lessons/headbands/quiz)
|
* [quiz](/lessons/headbands/quiz)
|
||||||
* [quiz answers](/microbit/lessons/headbands/quiz-answers)
|
* [quiz answers](/lessons/headbands/quiz-answers)
|
||||||
|
|
||||||
|
|
||||||
## Class
|
## Class
|
||||||
@ -42,19 +42,19 @@ Learn how to create a charades game with **collections**, ` create -> Collection
|
|||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
* **collection**
|
* **collection**
|
||||||
* **global variables** : [read more...](/microbit/js/data)
|
* **global variables** : [read more...](/js/data)
|
||||||
* **Boolean** : [read more...](/microbit/reference/types/boolean)
|
* **Boolean** : [read more...](/reference/types/boolean)
|
||||||
* **on logo up** [read more...](/microbit/functions/on-logo-up)
|
* **on logo up** [read more...](/functions/on-logo-up)
|
||||||
* **on screen down** [read more...](/microbit/functions/on-screen-down)
|
* **on screen down** [read more...](/functions/on-screen-down)
|
||||||
* **on screen up** [read more...](/microbit/functions/on-screen-up)
|
* **on screen up** [read more...](/functions/on-screen-up)
|
||||||
* **show string** : [read more...](/microbit/reference/basic/show-string)
|
* **show string** : [read more...](/reference/basic/show-string)
|
||||||
* **game library** : [read more...](/microbit/js/game-library)
|
* **game library** : [read more...](/js/game-library)
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
* Activity: [tutorial](/microbit/lessons/headbands/tutorial)
|
* Activity: [tutorial](/lessons/headbands/tutorial)
|
||||||
* Activity: [quiz](/microbit/lessons/headbands/quiz)
|
* Activity: [quiz](/lessons/headbands/quiz)
|
||||||
* Extended Activity: [challenges](/microbit/lessons/headbands/challenges)
|
* Extended Activity: [challenges](/lessons/headbands/challenges)
|
||||||
|
|
||||||
## Objectives
|
## Objectives
|
||||||
|
|
||||||
@ -112,17 +112,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor
|
|||||||
## Activity
|
## Activity
|
||||||
|
|
||||||
* time: 20 min.
|
* time: 20 min.
|
||||||
* [tutorial](/microbit/lessons/headbands/tutorial)
|
* [tutorial](/lessons/headbands/tutorial)
|
||||||
* [quiz](/microbit/lessons/headbands/quiz)
|
* [quiz](/lessons/headbands/quiz)
|
||||||
|
|
||||||
## Extended Activity
|
## Extended Activity
|
||||||
|
|
||||||
* time: 20 min.
|
* time: 20 min.
|
||||||
* [challenges](/microbit/lessons/headbands/challenges)
|
* [challenges](/lessons/headbands/challenges)
|
||||||
|
|
||||||
## Homework
|
## Homework
|
||||||
|
|
||||||
* Extended Activity: [challenges](/microbit/lessons/headbands/challenges)
|
* Extended Activity: [challenges](/lessons/headbands/challenges)
|
||||||
|
|
||||||
## Intended follow on
|
## Intended follow on
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ create a charades game with a collection of strings.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [headbands tutorial](/microbit/lessons/headbands/activity).
|
Use this activity document to guide your work in the [headbands tutorial](/lessons/headbands/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ create a charades game with a collection of strings.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [headbands tutorial](/microbit/lessons/headbands/activity).
|
Use this activity document to guide your work in the [headbands tutorial](/lessons/headbands/activity).
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -4,4 +4,4 @@ make a game to test hand-eye coordination.
|
|||||||
|
|
||||||
Make a game to test hand-eye coordination
|
Make a game to test hand-eye coordination
|
||||||
|
|
||||||
* [activity](/microbit/lessons/hero/activity)
|
* [activity](/lessons/hero/activity)
|
||||||
|
@ -8,7 +8,7 @@ Music
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/light-beatbox/activity)
|
* [activity](/lessons/light-beatbox/activity)
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ Have you ever tried to making beat box sounds based on the light level? Let's tr
|
|||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
Let's start by adding a variable where you can store data. Then rename the variable to "light". Then set the value of the variable to the block `light level` from the Input drawer. This will gets the `light level` from 0 (dark) to 255 (bright). The light is measured by using various LEDs from the screen. Modify your code so that your code looks like this.
|
Let's start by adding a variable where you can store data. Then rename the variable to "light". Then set the value of the variable to the block `light level` from the Input drawer. This will gets the `light level` from 0 (dark) to 255 (bright). The light is measured by using various LEDs from the screen. Modify your code so that your code looks like this.
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ For Loop
|
|||||||
|
|
||||||
## Quick links
|
## Quick links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/looper/activity)
|
* [activity](/lessons/looper/activity)
|
||||||
* [challenges](/microbit/lessons/looper/challenges)
|
* [challenges](/lessons/looper/challenges)
|
||||||
* [quiz](/microbit/lessons/looper/quiz)
|
* [quiz](/lessons/looper/quiz)
|
||||||
* [quiz answers](/microbit/lessons/looper/quiz-answers)
|
* [quiz answers](/lessons/looper/quiz-answers)
|
||||||
|
|
||||||
|
|
||||||
## Class
|
## Class
|
||||||
|
@ -38,7 +38,7 @@ for (let i = 0; i < 6; i++) {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/looper/challenges)!
|
Excellent, you're ready to continue with the [challenges](/lessons/looper/challenges)!
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Coding challenges for the looper.
|
|||||||
|
|
||||||
Complete the following guided activity:
|
Complete the following guided activity:
|
||||||
|
|
||||||
* [activity](/microbit/lessons/looper/activity)
|
* [activity](/lessons/looper/activity)
|
||||||
|
|
||||||
At the end of the activity, your code should look like this:
|
At the end of the activity, your code should look like this:
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Learn how to create a series of numbers with a for loop.
|
Learn how to create a series of numbers with a for loop.
|
||||||
|
|
||||||
This is the answer key for the [looper quiz](/microbit/lessons/looper/quiz).
|
This is the answer key for the [looper quiz](/lessons/looper/quiz).
|
||||||
|
|
||||||
## 1. What is a for loop?
|
## 1. What is a for loop?
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Learn how to create a series of numbers with a for loop.
|
|||||||
|
|
||||||
## Directions
|
## Directions
|
||||||
|
|
||||||
Use this activity document to guide your work in the [looper tutorial](/microbit/lessons/looper/activity)
|
Use this activity document to guide your work in the [looper tutorial](/lessons/looper/activity)
|
||||||
|
|
||||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ On Pin Pressed
|
|||||||
|
|
||||||
## Quick Links
|
## Quick Links
|
||||||
|
|
||||||
* [activity](/microbit/lessons/love-meter/activity)
|
* [activity](/lessons/love-meter/activity)
|
||||||
* [quiz](/microbit/lessons/love-meter/quiz)
|
* [quiz](/lessons/love-meter/quiz)
|
||||||
* [quiz answers](/microbit/lessons/love-meter/quiz-answers)
|
* [quiz answers](/lessons/love-meter/quiz-answers)
|
||||||
* [challenges](/microbit/lessons/love-meter/challenges)
|
* [challenges](/lessons/love-meter/challenges)
|
||||||
|
|
||||||
|
|
||||||
## Prior learning/place of lesson in scheme of work
|
## Prior learning/place of lesson in scheme of work
|
||||||
|
@ -8,7 +8,7 @@ Create a love meter with the micro:bit
|
|||||||
|
|
||||||
Welcome! This activity will help you create a love meter with the micro:bit. Let's get started!
|
Welcome! This activity will help you create a love meter with the micro:bit. Let's get started!
|
||||||
|
|
||||||
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*.
|
To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*.
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ input.onPinPressed(TouchPin.P0, () => {
|
|||||||
|
|
||||||
### ~avatar avatar
|
### ~avatar avatar
|
||||||
|
|
||||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/love-meter/challenges)
|
Excellent, you're ready to continue with the [challenges](/lessons/love-meter/challenges)
|
||||||
|
|
||||||
### ~
|
### ~
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user