# 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)


---

# 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/meowbit/coding/meowbit_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.
