> For the complete documentation index, see [llms.txt](https://learn.arduinosa.co.za/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.arduinosa.co.za/blocking-coding-lessons/beginner-lessons/blinking-an-led.md).

# Blinking an LED

## What will we do

Lets start by making our LED blink on and off. The way to make an LED blink is to follow this sequence of code instructions over and over again:

* Turn the LED on
* Delay for a period of time
* Turn the LED off
* Delay for a period of time

## Parts List

You will need the following parts:

* **1x** arduino uno
* **1x** arduino USB Cable
* **1x** Breadboard
* **2x** Jumper Wire
* **1x** LED
* **1x** Resistor

## Wiring it up

This example we use a red LED but you can use any colour LED you prefer.

![](https://gblobscdn.gitbook.com/assets%2F-LskXJjPT2bXMIodrtZq%2F-M6KHBUnLmM-6jNl9924%2F-M6KHTrk_yIYi1duHidc%2Farduino%20-%20blinking%20led.png?alt=media\&token=57c44282-de3a-45f4-ada5-2c9e67a912de)

Ensure that the LED are the right way around, with the longer positive leads (anodes) to the left.

## mBlock IDE

Launch the mBlock IDE (<https://ide.mblock.cc/#/>) and select the Arduino Uno Device.

## Install the KidsCode Extension

Click on the **Extensions** button

![](https://gblobscdn.gitbook.com/assets%2F-LskXJjPT2bXMIodrtZq%2F-M8u9rabTwe6GN62i0bu%2F-M8uBMB0jm_-3yp5yWJs%2Fmblock5.png?alt=media\&token=b88847e5-13c9-4b6f-9cea-7c93e8f5770b)

Search for **Kids Code** on the extension popup and **Add** the **Kids Code** extension

![](https://gblobscdn.gitbook.com/assets%2F-LskXJjPT2bXMIodrtZq%2F-M8u9rabTwe6GN62i0bu%2F-M8uB_6GFdx-58Cn_h6N%2Fmblock6.png?alt=media\&token=92d5573d-0ad6-4c39-bcf3-2183e2659160)

You will see the Kids Code blocks at the bottom.

![](https://gblobscdn.gitbook.com/assets%2F-LskXJjPT2bXMIodrtZq%2F-M8u9rabTwe6GN62i0bu%2F-M8uBikg1oFHvXTBDbgm%2Fmblock7.png?alt=media\&token=4d43856f-40d7-463b-b974-741962c53ab9)

## Block Coding

![](/files/-MRkPaONf2EXj5WZmQKM)

{% embed url="<https://ide.mblock.cc/#/?cloudProjectId=262516>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://learn.arduinosa.co.za/blocking-coding-lessons/beginner-lessons/blinking-an-led.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
