Advanced Programming
Inputs and Outputs - Work with real-world inputs and outputs.
🔗 Button Input + Icon Output 🔗 LED Animation – Flashing Heart
Loops - Use forever loops to repeat animations or actions.
Conditions (If-Else Logic) - Respond to button presses or sensor values with conditions.
🔗 Button Press If-Else Example
More Advanced Projects
1. Dice Simulator - Shake the micro:bit to roll a digital dice.
🔗 Dice Simulator – MakeCode Project
2. Thermometer - Show icons for hot/cold depending on temperature.
🔗 Temperature – MakeCode Project
3. Step Counter - Use accelerometer to track motion and count steps.
🔗 Step Counter – MakeCode Project
4. Gesture-Based Control - Detect gestures like tilt, shake, or face up/down.
🔗 Tilt Alarm Example – MakeCode Project
Tips for Exploring
- Try combining loops with conditions
- Test new blocks in the MakeCode playground
- Read values from
input.acceleration()
,input.temperature()
, and more