# Unit\_???

Unit\_で始まるアクト(Act)は、ごく単機能の記述や動作を確認するためのものです。

| 名前                       | 内容                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Unit\_ADC                | ADCを動作させるサンプルです。100msごとにADCを連続実行しつつ約1秒おきに読み出し表示します。`[s]`キーでスリープします。                                                                                                                                                                                                                                                                                                                          |
| Unit\_I2Cprobe           | I2Cバスをスキャンして、応答のあるデバイス番号を表示します（この手順で応答しないデバイスもあります）。                                                                                                                                                                                                                                                                                                                                         |
| Unit\_delayMicoroseconds | [`delayMicroseconds()`](/v0.1.7/api-reference/functions-1/systemfunc/delaymicroseconds.md)の動作を確認します。16MhzのTickTimerのカウントとの比較をします。                                                                                                                                                                                                                                                            |
| Unit\_brd\_CUE           | [TWELITE CUE](https://mono-wireless.com/jp/products/twelite-cue/)の加速度センサー,磁気センサー,LEDの動作確認を行います。ターミナルから`[a]`,`[s]`,`[l]`キーを入力します。                                                                                                                                                                                                                                                             |
| Unit\_brd\_PAL\_NOTICE   | <p><a href="/pages/-MHV6XGfq-mnm22KFaPX">通知パル(NOTICE PAL)のLED点灯</a>を試します。起動時に全灯フラッシュ、その後はシリアル入力で操作します。<br></p><ul><li><code>r</code>,<code>g</code>,<code>b</code>,<code>w</code> : 各色の点灯モードをトグルする</li><li><code>R</code>,<code>G</code>,<code>B</code>,<code>W</code> : 各色の明るさを変更する（消灯・全灯時は無効）</li><li><code>c</code>: 周期を変化させる（点滅時）</li><li><code>C</code>: 点滅時のデューティを変化させる（点滅時）</li></ul> |
| Unit\_div100             | 10,100,1000の割り算と商を求める[`div10()`,`div100()`,`div1000()`](/v0.1.7/api-reference/functions-1/utility/div100.md)の動作確認を行います。-99999～99999まで計算を行い通常の`/`,`%`による除算との経過時間の比較をします。                                                                                                                                                                                                                      |
| Unit\_div\_format        | [`div10()`,`div100()`,`div1000()`](/v0.1.7/api-reference/functions-1/utility/div100.md)の結果を文字列出力します。                                                                                                                                                                                                                                                                                         |
| Unit\_UART1              | UART1 ([`Serial1`](/v0.1.7/api-reference/predefined_objs/serial.md)) の使用サンプルです。UART0([`Serial`](/v0.1.7/api-reference/predefined_objs/serial.md))からの入力をUART1に出力し、UART1からの入力をUART0に出力します。                                                                                                                                                                                                     |
| Unit\_Pkt\_Parser        | <p>パケット情報のパーサー<a href="/pages/-MJxaCULFDraDB5H17WI">pktparser</a>の使用サンプルです。App\_Wingsの出力を解釈することが出来ます。<br>※ TWELITE無線モジュール同士をシリアル接続して、一方をApp\_Wingsとして他方でその出力を解釈したいような場合です。他方をTWELITE無線モジュール以外に接続したい場合は「<a href="/pages/-MJyN2QCEimzLBMX3HiX">他のプラットフォーム</a>」を参照ください。</p>                                                                                                                     |
| Uint\_EEPROM             | EEPROMの読み書きテストコードです。                                                                                                                                                                                                                                                                                                                                                                         |


---

# 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://mwx.twelite.info/v0.1.7/act_samples/unit_acts.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.
