3. Case01: LED#

3.1. Purpose#


  • In this project, you will learn how to use micro:bit to control the flash of led.

3.2. Materials#


  • 1 x micro:bit

  • 1 x Basic : bit

  • 1 x Red LED

  • 1 x Green LED

3.3. Software Platform#


MicroSoft makecode

3.4. Hardware connect#

../../_images/case_01_01.jpg

3.5. Programming#


Program annotation#

../../_images/case_01_021.png

Programming#

Links: https://makecode.microbit.org/_65R0K831xY47

You can also download it directly below:

3.6. Result#


  • LED light is flashing when the program is running.

3.7. Exploration#


  • How to change the flash frequency of LED.

3.8. FAQ#


3.9. Relevant Files#