# Meowbit顯示屏(Kittenblock)

Meowbit在Kittenblock上可以對顯示屏做編程。

### Kittenblock編程教學

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

#### 顯示屏積木塊

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

#### 顯示屏顏色和清屏

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

按A填滿顏色，按B清屏。

#### 顯示屏畫點、線

```
線的畫法是由第一點開始畫到第二點。例：(79,72)->(100,86)
```

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

#### 顯示屏畫矩形和圓形

```
矩形的座標是代表矩形的左上角，w和h分別代表長和闊，Fill代表填色。
圓形的座標是代表圓形的圓心，r代表半徑，Fill代表填色。
```

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

#### 顯示屏畫三角形和多邊形

```
三角形的三個座標分別代表三個角，Fill代表填色。
多邊形的座標代表圖形的正中心，可以指定邊的數量，圖形大小，邊的粗度和圖形旋轉，Fill代表填色。
```

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

#### 顯示屏寫出文字

```
座標代表文字的左上角。
```

![](https://kittenbothk.readthedocs.io/en/latest/_images/tft5.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_tft.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.
