Makerspace

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.

πŸ”— Forever Loop Examples


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
Thanks! We hope you found what you are looking for. Please feel free to contribute via GitHub.