# LED Bar v2.0 (MY9221)

The Grove LED Bar v2.0 is comprised of a 10 segment LED gauge bar and an MY9221 LED controlling chip. It can be used as an indicator for remaining battery life, voltage, water level, music volume or other values that require a gradient display. There are 10 LED bars in the LED bar graph: one red, one yellow, one light green, and seven green bars. For complete details, please visit [the official WiKi page](http://wiki.seeed.cc/Grove-LED_Bar/) of this component.

You can see how to download and install the driver by referring to:

* [How to install driver](https://docs.labs.mediatek.com/resource/linkit7697-arduino/en/grove-starter-kit)
* [Driver repository](https://github.com/MediaTek-Labs/linkit-7697-peripheral-drivers-for-arduino)

After the installation is done, follow the steps below to use this component.

### Setup and Execution <a href="#ledbarv2.0-my9221-setupandexecution" id="ledbarv2.0-my9221-setupandexecution"></a>

1. Connect the LED module to the **I2C** header of the LinkIt 7697 breakout board.
2. Select the **File / Examples / Grove\_LED\_Bar-master / Walk** menu.
3. Click the **Upload** icon to compile and upload the sketch file to the board.
4. You will see the LED Bar blink in a similar pattern as below:

![](/files/6dij5SEoyBKXd7Z0z2Yr)


---

# 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/tutorial/led-bar-v2.0-my9221.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.
