> 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/meowbit/coding/meowbit_neopixel.md).

# Meowbit的燈條編程

使用Meowbit亦可對Neopixel的燈條編程，例如Robotbit上的燈條。

### MakeCode Arcade編程教學

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

### Robotbit 燈條編程

#### 載入燈條插件

#### [詳細方法](/programmingplatforms/makecode/kittenbotandmakecode.md)

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

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

#### 燈條積木塊

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

#### 燈條編程

```
在Meowbit上使用Robotbit的燈條時，需要在Pin 16設置長度為4的WS2812燈條。
```

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

**4顆燈同時點亮**

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

[參考程式](https://makecode.com/_XXwcLH7YpW2x)

**使用RGB數值指定顏色**

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

[參考程式](https://makecode.com/_CTVgMgevD2Ks)

**使用HSL數值指定顏色**

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

[參考程式](https://makecode.com/_M6M9VrHbj8dH)

**點亮指定一顆燈**

```
燈條像素數值由0開始數。
```

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

[參考程式](https://makecode.com/_89Hb2TW6LJ0a)

**光子效果**

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

[參考程式](https://makecode.com/_92m20h91uL5j)

### Kittenblock編程教學

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

#### 燈條編程

```
在Meowbit上使用Robotbit的燈條時，需要在Pin 16設置長度為4的WS2812燈條。
```

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

**4顆燈同時點亮**

```
所有燈效都需要運行Color Update這個積木才會顯示。
```

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

**使用RGB數值指定顏色**

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

**點亮指定一顆燈**

```
燈條像素數值由0開始數。
```

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