En què consisteix?
Display happy and sad icons and play happy and sad sounds on your BBC micro:bit by pressing buttons A and B. This is a great project to encourage students to talk about their feelings.

Com funciona
- When you press button A, the micro:bit shows a happy icon on its LED display and plays a happy sound.
- When you press button B, the micro:bit shows a sad icon on its LED display and plays a sad sound.
- Inputs allow us to put data into a computer or device. In this project, the inputs are pressing buttons A or B.
- A detectable action, like a user pressing a button, is sometimes called an event in computing.
- An output is the processed information that is sent out from a computer. In this project, the output is the icons shown on the micro:bit's display and the sounds that are played from the micro:bit’s speaker.
Què necessites
- a V2 micro:bit
- Editor de MakeCode
- Piles
Codifica el teu projecte
Aquí tens els blocs necessaris per fer el projecte - ara posa'ls junts.
Instruccions pas a pas
- Obre el projecte per trobar els blocs necessaris fent servir els botons de més amunt.
- Find and select the show icon happy block.
- Put it inside the on button A pressed block.
- Find and select the play giggle until done block.
- Put the play giggle until done block inside the on button A pressed block underneath the show icon happy block.
- Change the sound giggle to happy in the play giggle until done block.
- Find and select the show icon sad block.
- Put it inside the on button B pressed block.
- Now select the remaining play giggle until done block and put it inside the on button B pressed block underneath the show icon sad block.
- Change the sound giggle to sad in the play giggle until done block.
- Descarrega el programa a la teva micro:bit, endolla el porta piles i prova-ho!
Make it your own
- Try out some other sounds in the play giggle until done block. There are 10 to choose from.
- Choose different icons to display such as angry, confused or surprised.
Example of a completed project
Take a peek at some completed code.
Projectes relacionats
Aquest projecte és part d'una col·lecció de projectes inclusius per estudiants amb discapacitat visual.
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.


