🌬️ MakeCode micro:bit Lab
🇬🇧 Learn how an input can control an output.
🇮🇩 Memahami bagaimana sebuah input dapat mengendalikan output.
Input: Button A / Button B → Process: Program → Output: Fan
🖥️ Simulator
🧩 Program
English: Press button A to turn the fan ON and button B to turn the fan OFF.
Indonesia: Tekan tombol A untuk menyalakan kipas dan tombol B untuk mematikannya.
Button A and Button B are inputs. The fan is the output.
Tombol A dan B adalah input, sedangkan kipas merupakan output.
🎯 Practice — Latihan
Question:
What happens when you press button A?
🏆 Challenges — Tantangan
Challenge 1 — Turn the Fan ON/OFF
Run the program, then turn the fan ON and turn it OFF again.
Jalankan program, kemudian nyalakan dan matikan kembali kipas.
Challenge 2 — Change the Control
Suppose button B should turn the fan ON. Which event should contain set FAN to ON?
Jika tombol B harus menyalakan kipas, blok mana yang harus digunakan?
Challenge 3 — Think Like a Programmer
Complete the sequence:
Now Try It with a Real micro:bit!
English
You've practiced with the simulator.
Now create the program using the real
Microsoft MakeCode editor.
Indonesia
Kamu sudah berlatih menggunakan simulator.
Sekarang buat program menggunakan
Microsoft MakeCode yang sesungguhnya.
- Open Microsoft MakeCode.
- Create a new micro:bit project.
- Program button A to turn the fan ON.
- Program button B to turn the fan OFF.
- Test your program in the simulator.
- Download the program to your real micro:bit.
Official Microsoft MakeCode for micro:bit
Learn → Try → Create
