# Run Your First Sketch

After setting up the IDE, we now upload a basic sketch to make sure everything is working properly.

### The Blink Example <a href="#runyourfirstsketch-theblinkexample" id="runyourfirstsketch-theblinkexample"></a>

This is the most basic example sketch from the board - blink the onboard **USR** LED. To run the example, follow the below steps:

1. Connect the board to your computer, as instructed in the previous chapter.
2. Select  **LinkIt 7697** from the board: go to **Tools > Board**.
3. Select **Tools > Port:** menu, and then select **COM** ***XYZ*****&#x20;(LinkIt 7697)**. The number ***XYZ***  can be different on each computer. The screenshot below is an example:

![](/files/k8P3PPS48pzkgwL0BpAq)

4.Now select the Blink example from **File > Examples > 01. Basics > Blink**, as shown below:

![](/files/RPFDheqzPAjeOvzqNQAA)

5.Click the  **Upload**  button on the toolbar, as shown below:

![](/files/bVYxsboWN4aMLcOmx9VH)

6.It may take some time to compile and upload the sketch. During the uploading process, the board's  **TX**  and  **RX**  LEDs will blink rapidly. Once the uploading completes, the IDE shows `Done uploading.` as shown below:

![](/files/cvd9LOwoRbWc17ensKDo)

7.The board will automatically reboot, and the **USR** LED should start to blink once every second.

Note that unlike Arduino Uno, the **USR** LED maps to **P7** instead of P13 on the LinkIt 7697 board. Therefore the functional call:

```
digital_write(LED_BUILTIN, HIGH);
```

is equal to:

```
digital_write(7, HIGH); // 7 maps to P7 on LinkIt 7697 board
```

Refer to the [pinout diagram](https://labs.mediatek.com/en/download/1ega2lbl) to find other pin mapping definitions.


---

# 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://cavedu.gitbook.io/linkit-7697/linkit-7697-development-guide-for-arduino-ide/environment-setup/run-your-first-sketch.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.
