> For the complete documentation index, see [llms.txt](https://docs.kidscode.co.za/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kidscode.co.za/microbit-advanced-activities/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** micro:bit
* **1x** Micro B USB Cable
* **1x** Breadboard
* **1x** Jumper Wire
* **1x** LED&#x20;
* **1x** Resistor

## Wiring it up

This example we use a red LED but you can use any colour LED you prefer.&#x20;

![](/files/-M6H940zhZQkehLWx2RA)

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

## Block Coding

{% embed url="<https://makecode.microbit.org/_dmFPWeUw9Ye7>" %}


---

# 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:

```
GET https://docs.kidscode.co.za/microbit-advanced-activities/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.
