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