# TWELITE APPS ビルド＆書換

`Windows` `macOS` `Linux` `RasPi`&#x20;

TWELITE APPSのビルドと書き換えを行います。 (Windows/Mac/Linux)

{% hint style="success" %}
TWENET C API によるC言語で記述され、そのまま利用いただく比較的規模の大きいソースコードが中心です。
{% endhint %}

![](https://342755103-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5_tfOG08pt22FxVn3O%2F-MJAxF2zNd67tn5lf4Zu%2F-MJAxLSUKw3MpxMzOhqG%2Fimage.png?alt=media\&token=60c55a09-1da3-462c-a912-21b90c11b27c)

この画面を開くと、プロジェクト一覧が表示されます。書き込みたいプロジェクトを選択すると、ビルド～書き込みを行います。書き込み終了後に`Enter`または`[ B ]`ボタンを押すことで、TWELITE無線モジュールをリセットし、インタラクティブモード画面（またはターミナル画面、要設定）に遷移します。

[ビルド～書き込み画面](https://stage.twelite.info/1.0-1/usage/screens/main_menu/firm_prog/build_screen)

VSCodeを利用する設定（アプリ書換＞codeでフォルダを開く）になっている場合は、ビルドは行わず`build/`以下の[BINファイルを書き込む画面](https://stage.twelite.info/1.0-1/usage/screens/main_menu/firm_prog/bin)を開きます。

### フォルダ

ビルド対象となるプロジェクトは以下になります。

```
{MWSTAGEインストールフォルダ}/MWSTAGE/Wks_TweApps
```

### 操作

| 操作                             |                                                            |
| ------------------------------ | ---------------------------------------------------------- |
| \[ A ]                         | メニュー選択 ↑                                                   |
| \[ A ] 長押し                     | この画面を抜け、前メニューに戻る                                           |
| \[ B ]                         | 選択                                                         |
| \[ B ] 長押し                     | 関連ウェブサイト（プロジェクトフォルダの`000desc.txt`に登録がある場合）をOS標準のブラウザで開きます。 |
| \[ C ]                         | メニュー選択 ↓                                                   |
| \[ C ] 長押し                     | フォルダ（プロジェクト、関連フォルダ）を開きます。設定メニューでVS Codeで開くように設定できます。       |
| ESC                            | この画面を終了し、書換メニューに戻ります。                                      |
| マウスクリック \[ｳｪﾌﾞ]                | 関連ウェブサイトを開きます。                                             |
| マウスクリック \[ﾌｫﾙﾀﾞ] または \[VSCode] | 関連フォルダを開きます。                                               |
| マウスクリック \[▽] または \[△]          | 次ページ、前ページに移動します。                                           |


---

# 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://stage.twelite.info/1.0-1/usage/screens/main_menu/firm_prog/tweapps_build.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.
