This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-07-24

Unit_???

Sample for verifying the operation of single functions
    Acts starting with Unit_ are for describing very simple functions or for verifying their operation.
    NameDescription
    Unit_ADCSample to operate the ADC. Continuously executes ADC every 100ms and reads and displays approximately every 1 second. Sleep with the [s] key.
    Unit_I2CprobeScans the I2C bus and displays device numbers that respond (some devices may not respond during this procedure).
    Unit_delayMicorosecondsVerifies the operation of delayMicroseconds(). Compares with the count of a 16MHz TickTimer.
    Unit_brd_CUEVerifies the operation of the accelerometer, magnetic sensor, and LED of TWELITE CUE. Input keys [a], [s], [l] from the terminal.
    Unit_brd_ARIAVerifies the operation of the temperature/humidity sensor, magnetic sensor, and LED of TWELITE ARIA. Input keys [t], [s], [l] from the terminal.
    Unit_brd_PAL_NOTICETests the LED lighting of Notification Pal (NOTICE PAL). Flashes all lights at startup, then operates via serial input.
    - r,g,b,w: Toggle lighting modes for each color
    - R,G,B,W: Change brightness for each color (disabled when off or fully on)
    - c: Change cycle (when blinking)
    - C: Change duty cycle when blinking
    Unit_div100Verifies division and quotient calculation for 10, 100, 1000 using div10(),div100(),div1000(). Performs calculations from -99999 to 99999 and compares elapsed time with normal / and % division.
    Unit_div_formatOutputs the results of div10(),div100(),div1000() as strings.
    Unit_UART1Usage sample of UART1 (Serial1). Outputs input from UART0 to UART1 and input from UART1 to UART0.
    Unit_Pkt_ParserSample usage of packet parser pktparser. Can interpret output from App_Wings.
    ※ For connecting TWELITE wireless modules via serial, using one as App_Wings and interpreting its output on the other. For connecting to non-TWELITE wireless modules, see Other Platforms.
    Unit_EEPROMEEPROM read/write test code.
    Unit_Cue_MagBuzProgram that sounds a buzzer connected to the SET pin when a magnet is removed, using the magnet sensor of TWELITE CUE and a piezo buzzer.
    Unit_doint-bhvExample behavior description handling IO interrupts.
    Unit_EASTLCollection of fragment codes using the EASTL library.