# 📟 Micro:bit Basics (BGE)

They will use block-based or simple code to create interactive programs using inputs, outputs and logic.

***

### ⌨️ **Input**

**Input** is how the micro:bit receives data.\
This can come from buttons, sensors, or user actions.

Examples include:

* Pressing button A or B
* Shaking the micro:bit
* Detecting temperature or light

➡️ *Insert video here*

***

### ⚙️ **Process**

**Process** is where the micro:bit works with the data it receives.\
It might make a calculation or decide what should happen next.

➡️ *Insert video here*

***

### 🖥️ **Output**

**Output** is how the micro:bit shows results.\
This is usually through the LED display, sounds, or connected components.

Examples include:

* Displaying images or text
* Showing numbers
* Turning on LEDs

➡️ *Insert video here*

***

### 🔀 **Selection**

**Selection** allows the micro:bit to make decisions.\
It chooses what to do based on conditions.

Example:

* If button A is pressed, show a smiley face
* Else, show a sad face

➡️ *Insert video here*

***

### 🧭 **Sequencing**

**Sequencing** means instructions are carried out in the correct order.\
The order of blocks or code affects how the program works.

➡️ *Insert video here*

***

### 🔄 **Iteration**

**Iteration** means repeating instructions.\
On the micro:bit, this is often done using loops like “forever”.

➡️ *Insert video here*

***

### 🎮 **Mini Project**

Now it’s time to bring everything together.

Create a micro:bit program that uses:

* Input (e.g. button press or shake)
* Process (making a decision or calculation)
* Output (displaying something on the screen)
* Selection
* Sequencing
* Iteration

➡️ *Insert project video here*

***

###

***

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://upskilling.stacs.scot/physical-computing-l2-bge/micro-bit-basics-bge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
