# 內存檔案操作

KOI 2現時可以將檔案放在內部儲存空間，如需刪除或複製內存的檔案，請參考以下教程。

### <mark style="color:green;">注意：此功能需要固件版本v4.0.7或以上</mark>

更新固件方法如下：

{% content-ref url="/pages/OJ7vd5czxqLP6okLvN5O" %}
[KOI (KOI 1 & 2) 固件升級](/airelated/koi2/firmwareupdate.md)
{% endcontent-ref %}

### <mark style="color:green;">MakeCode編程</mark>

在MakeCode打開專案，點擊擴展一頁。

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/16-1.png" alt=""><figcaption></figcaption></figure>

在搜尋欄輸入koi 2。

<figure><img src="/files/v8PGKqCshXiZsiXziuOs" alt=""><figcaption></figcaption></figure>

加載成功後，積木欄會新增koi2的積木。

<figure><img src="/files/nGf4RzfogJMXUu8gAZwE" alt=""><figcaption></figcaption></figure>

### 編程積木

<figure><img src="/files/2TKfodRWS14XcN9i0XtN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4e5Qc7JQ6f71R1jcshEp" alt=""><figcaption></figcaption></figure>

### 參考程式

{% hint style="info" %}
Armourbit用家請使用初始化Armourbit積木。
{% endhint %}

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FPGyECwlPd2M3JqUBLDfO%2Fimage.png?alt=media&#x26;token=662ace3f-a8eb-4fbf-8a10-1d9643c88b1e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
KOI 2的SD卡要求比較高，請使用高速micro SD卡(class 10或以上)
{% endhint %}

{% embed url="<https://makecode.microbit.org/_UMJXhTMz17Hc>" %}

[參考程式](https://makecode.microbit.org/_UMJXhTMz17Hc)

#### 程式解說

1. 按A可以顯示KOI內部文件清單，5秒後會自動關閉清單
2. 按A+B可以將檔案複製到SD卡
3. 按B可以刪除檔案


---

# 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/airelated/koi2/koi2makecode/fileoperations.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.
