> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/mcu/futureboard/kittenblock/neopixel.md).

# 未來板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)
