# 未來板NeoPixel彩燈KittenBlock編程教學

未來板也支援各款ws2812的燈條，包括板上載有的燈條和外加的燈條。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbbanner10.png)

### NeoPixel彩燈積木塊

![](https://kittenbothk.readthedocs.io/en/latest/_images/neopixel1.png)

#### 範例程式：控制所有彩燈

```
未來板上的彩燈連接在P7。
```

![](https://kittenbothk.readthedocs.io/en/latest/_images/neopixel_code1.png)

#### 範例程式：控制單一彩燈

```
未來板上的彩燈連接在P7。
```

![](https://kittenbothk.readthedocs.io/en/latest/_images/neopixel_code2.png)


---

# 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://sharinghub.kittenbot.hk/mcu/futureboard/kittenblock/neopixel.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.
