> 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/airelated/koi2/kittenblock/buttons.md).

# KOI按鍵編程

### KittenBlock編程

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN6MlwBFbL3P67FzMMyL%2Fuploads%2Fl19tozYLgHwNRkKUFObq%2Fimage.png?alt=media&#x26;token=b6e6d7c4-e12e-4374-a175-c073a881255a" alt=""><figcaption></figcaption></figure>

參考程式:

{% file src="/files/E1PG0NHrcv5fNST9QTV2" %}

### 程式解說

1. 按KOI的A鍵點亮紅色燈。
2. 按KOI的B鍵點亮紅色燈。
3. 按KOI的A+B鍵熄滅所有燈。
