MWX Library
latest_en
latest_en
  • The MWX Library
  • revision history
  • About the MWX library
    • License
    • Terms
    • The design policy
  • Install and Build
    • Environment (OS, etc.)
    • Installing the TWELITE SDK
    • Building ACT
    • Creating a new project
    • Installing VSCode
    • Build definition Makefile
    • Other platforms
  • Sample ACTs
    • act0 .. 4
    • Scratch
    • Slp_Wk_and_Tx
    • Parent_MONOSTICK
    • PingPong
    • BRD_APPTWELITE
    • BRD_I2C_TEMPHUMID
    • PAL_AMB
    • PAL_AMB-usenap
    • PAL_AMB-bhv
    • PAL_MAG
    • PAL_MOT-single
    • PAL_MOT-fifo
    • PulseCounter
    • WirelessUART
    • Rcv_Univsl
    • Unit_???
  • API
    • Definition.
    • class object
      • the_twelite
      • Analogue
      • Buttons
      • EEPROM
      • PulseCounter
      • Serial
      • SerialParser
      • SPI
        • SPI (using member functions)
        • SPI (using helper class)
      • TickTimer
      • Timer0 .. 4
      • Wire
        • Wire (using member functions))
        • Wire (using helper class)
    • Classes
      • MWX_APIRET
      • alloc
      • axis_xyzt
      • packet_rx
      • packet_tx
      • serparser
      • pktparser
        • E_PKT
        • idenify_packet_type()
        • TwePacket
          • TwePacketTwelite
          • TwePacketIO
          • TwePacketUART
          • TwePacketPAL
      • smplbuf
        • .get_stream_helper()
        • smplbuf_strm_u8
      • smplque
      • mwx::stream
        • format (mwx::mwx_format)
        • mwx::bigendian
        • mwx::crlf
        • mwx::flush
        • stream_helper
      • SM_SIMPLE state machine
    • Call back functions
      • setup()
      • begin()
      • loop()
      • wakeup()
      • init_coldboot()
      • init_warmboot()
      • on_rx_packet()
      • on_tx_comp()
    • BEHAVIOR
      • PAL_AMB-behavior
    • Functions
      • System Functions
        • millis()
        • delay()
        • delayMicroseconds()
        • random()
      • DIO General purpose IO
        • pinMode()
        • digitalWrite()
        • digitalRead()
        • attachIntDio()
        • detachIntDio()
        • digitalReadBitmap()
      • Utility Functions
        • Printf utils
        • pack_bits()
        • collect_bits()
        • Byte array utils
        • pack_bytes()
        • expand_bytes()
        • CRC8, XOR, LRC
        • div100()
        • Scale utils
        • pnew
    • External Libraries
      • EASTL
  • Board (BRD)
    • <BRD_APPTWELITE>
    • <MONOSTICK>
    • PAL
      • <PAL_AMB>
      • <PAL_MAG>
      • <PAL_MOT>
      • <PAL_NOTICE>
    • <CUE>
  • Sensor Devices (SNS)
    • SHTC3 - Temp/Humd sensor
    • SHT3x - Temp/Humd sensor
    • LTR-308ALS - Luminance Sensor
    • MC3630 - Accel sensor
    • BMx280 - Temp/Humd/Pressure Sensor
    • PCA9632 - LED Driver
  • Network (NWK)
    • Simple Relay Net <NWK_SIMPLE>
    • Layered Tree Net <NWK_LAYERED>
  • Settings (STG) - Interactive settings mode
    • <STG_STD>
GitBook提供
このページ内
PDFとしてエクスポート
  1. Sample ACTs

Unit_???

前へRcv_Univsl次へAPI

最終更新 2 年前

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

, and compare with the count of 16Mhz TickTimer.

Unit_brd_CUE

Check the operation of the acceleration sensor, magnetic sensor, and LED of . Input [a],[s],[l] keys from the terminal.

Unit_brd_PAL_NOTICE

. All lights flash at startup, then operate via serial input. - r,g,b,w : Toggle each color lighting mode - R,G,B,W : change the brightness of each color (disabled when lights off or all lights on) - c: change the cycle (when blinking) - C: change the duty when blinking (when blinking)

Unit_div100

Find the divisor and quotient of 10,100,1000 . -9999999 to 999999 and compare the elapsed time with the usual division by /,%.

Unit_div_format

results in string output.

Unit_UART1

UART1 () is a sample of using UART0 () outputs input from UART1 to UART1 and input from UART1 to UART0.

Unit_Pkt_Parser

Sample use of the packet information parser <a href="../It can interpret the output of App_Wings. * 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 "".

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.

delayMicroseconds()
TWELITE CUE
Try Notice Pal (NOTICE PAL) LED lighting
div10(),div100(),div1000()
div10(),div100(),div1000()
Serial1
Serial
Other Platforms