# My name is?

## Open the MakeCode Editor

Ask the kids to on the ***micro:bit*** icon on your toolbar click on the link on the slideshow.

<https://makecode.microbit.org/>

![](/files/-LskclQv7ySUOW6M71CY)

Click on "***New Project***". The MakeCode editor will appear

## Quick tour of the MakeCode Editor

![](/files/-LsmuvfdpeKfVIMjtx2R)

{% hint style="info" %}
Explain to the kids about the MakeCode editor.
{% endhint %}

The MakeCode editor consists of the following components

* **Simulator** - on the left side of the screen, you will see a virtual micro:bit that will show you what your program will look like running on a micro:bit. You can also press the buttons to see what your program will do
* **Toolbox** - in the middle of the screen, there are a number of different categories, each containing a number of blocks that can be dragged into the programming workspace on the right. We will use this during the course. A block is like an instruction to tell the code or micro:bit what to do.
* **Workspace** - on the right side of the screen, the grey area, is the Programming Workspace where you will create your program. Programs are constructed by snapping blocks from the Toolbox.
* **Download** - You will use this button to download your code when you are ready to install it to your micro:bit
* **Program Name** - This is the name that you will give your program.

{% hint style="info" %}
Move the show number block to the Workspace. Show them how to drag and snap a block in place.&#x20;

Move the Clear Screen block also and snap it to the forever loop.

Move the Clear Screen block out and show that that it is grey, this means that is it not part of the program

Delete the Clear Screen block tel them this is how you delete the block.
{% endhint %}

## Write you first Program

{% hint style="info" %}
Now lets write our first program
{% endhint %}

Click on the **Basic** (blue) category in the Toolbox

![](/files/-Lsmym5b6kRFVTFqfrGT)

Drag the "**show string**" block to the Workspace. You will see that the block is grey which means that it is not in use.

![](/files/-Lsmym5ay9JvN-9kClg6)

Try to delete the "**show string**" block by dragging it back to the toolbar. As you drag it to the toolbar you will notice a bin icon will appear. Drag the block to the toolbar to delete it.

Now drag the "**show string"** block back to the workspace.

Drag the "show string" block to the "**forever**" block. Once it is dragged it will snap into the **"forever"** block. You will also notice on the Simulator (left hand side), the virtual micro:bit will show a **scrolling hello**&#x20;

![](/files/-Lsmym5_AyVMeeaKFFrf)

Now click on the "**show string**" block when it shows "**hello**" and type in your name.

![](/files/-Lsmym5Z9H6jAh5FqTuu)

Again you will see the virtual micro:bit show your name.

Type "**name**" in name field

![](/files/-Lsmym5cY-BF21SyOVcR)

## Upload your code to your micro:bit

Click the pair device option from the menu and ask the kids to Pair their device.

Then press the **Download** button

You will now see the light flashing on the micro:bit. This means the code is uploading.

Once the code has completed, you will see your name scroll on your mirco:bit.


---

# 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://docs.kidscode.co.za/microbit-beginners/lesson-1/my-name-is.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.
