# 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

![](https://451694785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPda5vaSVRKTQ6AoAmb%2Fuploads%2Fgit-blob-007109c32fd425ecfcf63c58af539bfff5890cb5%2Fimage.png?alt=media)

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


---

# 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://learn.arduinosa.co.za/blocking-coding-lessons/beginner-lessons/blinking-an-led.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.
