This lesson will introduce you to coding, provide an overview of the Microsoft Makecode platform for coding and the VayuLearn Experiential AI kit. You will learn to program Micro:bit using Makecode editor to display different Patterns on Micro:bit using LEDs and buttons.
An LED, or light-emitting diode is an output device that gives off light. Your BBC Micro:bit has a display of 25 LEDs arranged in a 5*5 grid (5 LEDs across by 5 LEDs down) for you to program. You can display an image directly to the screen or show text and numbers on screen using the show number and show string functions.
Buttons are a very common input device. The Micro:bit has two buttons: A and B. You can use the buttons to get input from the user. Perhaps you'd like to start or stop your program with a button press.
Performance Expectations
By the end of the lesson, you will be able to:
Describe about LEDs and buttons on Micro:bit
How to program the micro bit to turn on LEDs
How to display different patterns on Micro:bit
How to use buttons to give input to Micro:bit
Guiding Ideas
You will perform an activity called “Animated animals” to display the functioning of LEDs and they can use these LEDs to display different patterns. They can make some improvement in the program and use Button A& B to do some change in the activity.
Disclaimer: All content under this course is customized according to the requirement of an educator/student (K12) filtered from Minecraft Education Edition, MakeCode Microbit, Code.org, and other sources.