> For the complete documentation index, see [llms.txt](https://mwx.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwx.twelite.info/latest_en/act_samples/unit_acts.md).

# Unit\_???

An ACT (Act) beginning with \_Unit\_ is used to describe a very single function or to check the operation of a function.

| Name                     | Content                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Unit\_ADC                | This sample runs the ADC, reading and displaying about every second while continuously running the ADC every 100ms. Sleep by `[s]` key.                                                                                                                                                                                                                                                                                                                                                                                               |
| Unit\_I2Cprobe           | Scan the I2C bus for responding device numbers (some devices may not respond to this procedure).                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Unit\_delayMicoroseconds | [`delayMicroseconds()`](/latest_en/api-reference/funcs/systemfunc/delaymicroseconds.md), and compare with the count of 16Mhz TickTimer.                                                                                                                                                                                                                                                                                                                                                                                               |
| Unit\_brd\_CUE           | Check the operation of the acceleration sensor, magnetic sensor, and LED of [TWELITE CUE](https://mono-wireless.com/jp/products/twelite-cue/). Input `[a]`,`[s]`,`[l]` keys from the terminal.                                                                                                                                                                                                                                                                                                                                        |
| Unit\_brd\_PAL\_NOTICE   | <p><a href="/pages/uphiZHrZqALNC2sIXcr1">Try Notice Pal (NOTICE PAL) LED lighting</a>. All lights flash at startup, then operate via serial input.<br>- <code>r</code>,<code>g</code>,<code>b</code>,<code>w</code> : Toggle each color lighting mode<br>- <code>R</code>,<code>G</code>,<code>B</code>,<code>W</code> : change the brightness of each color (disabled when lights off or all lights on)<br>- <code>c</code>: change the cycle (when blinking)<br>- <code>C</code>: change the duty when blinking (when blinking)</p> |
| Unit\_div100             | Find the divisor and quotient of 10,100,1000 [`div10()`,`div100()`,`div1000()`](/latest_en/api-reference/funcs/utility/div100.md). -9999999 to 999999 and compare the elapsed time with the usual division by `/`,`%`.                                                                                                                                                                                                                                                                                                                |
| Unit\_div\_format        | [`div10()`,`div100()`,`div1000()`](/latest_en/api-reference/funcs/utility/div100.md) results in string output.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Unit\_UART1              | UART1 ([`Serial1`](/latest_en/api-reference/predefined_objs/serial.md)) is a sample of using UART0 ([`Serial`](/latest_en/api-reference/predefined_objs/serial.md)) outputs input from UART1 to UART1 and input from UART1 to UART0.                                                                                                                                                                                                                                                                                                  |
| Unit\_Pkt\_Parser        | <p>Sample use of the packet information parser \<a href="../It can interpret the output of App\_Wings.<br>\* You may want to connect two TWELITE radio modules serially and use one as App\_Wings and the other to interpret its output. If you want to connect the other to a non-TWELITE radio module, you can use "<a href="/pages/-MJyN2QCEimzLBMX3HiX">Other Platforms</a>".</p>                                                                                                                                                 |
| Uint\_EEPROM             | EEPROM read/write test code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Unit\_Cue\_MagBuz        | This program uses the TWELITE CUE magnet sensor and SET pin (connected to a piezoelectric buzzer) to sound a buzzer when the magnet is released.                                                                                                                                                                                                                                                                                                                                                                                      |
| Unit\_doint-bhv          | Example of BEHAVIOR description for handling IO interrupts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Unit\_EASTL              | A collection of small codes using the EASTL library.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
