10. Case 08: Play the Music

10.1. Purpose


  • Use the Smart Coding Kit to play a music.

10.2. Material


  • 1 x smart coding kit

../../_images/smart_coding_kit_case_08_01.png

10.3. Software


MicroSoftmakecode

10.4. Programming


  • Show the icon when on start

  • While button A being pressed, it plays the music of “Happy Birthday”.

  • While button B being pressed, it plays the music that you set. ../../_images/smart_coding_kit_case_08_02.png

10.5. Result


  • Show the icon when on start

  • While button A being pressed, it plays the music of “Happy Birthday”.

  • While button B being pressed, it plays the music that you set.

10.6. Exploration


10.7. FAQ


10.8. Relevant File