Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 855 Bytes

File metadata and controls

33 lines (25 loc) · 855 Bytes

PROJ_Q_YV3p5_Shell_Platform_Command

Platform command with zephyr

USAGE

  • GPIO relative

    • Get all gpios' info if enable
      platform gpio list_all
      alt text

    • Get all gpios' info in one group
      platform gpio list_group <gpio_group_name>
      alt text

    • Get one gpio info
      platform gpio get <gpio_num>

    • Set one gpio's value
      platform gpio set val <gpio_num> <0/1>
      alt text

    • Set one gpio's direction(not support!)
      platform gpio set dir <gpio_num> <0/1>

  • SENSOR relative

    • Get all sensors' info
      platform sensor list_all

    • Get one sensor info
      platform sensor get <sensor_num>

  • I2C relative
    Not support!

NOTE