ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    GPIO numbering

    VOXL 2
    1
    2
    204
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Viswanadh CheguV
      Viswanadh Chegu
      last edited by Viswanadh Chegu

      Hi,

      I would like to access the gpio pin 12 using interposer M0076 TP5 at J8
      Screenshot from 2023-07-03 16-36-01.png

      echo 12 > /sys/class/gpio/export 
      

      Not works shows Invalid argument

      but

      echo 1073 > /sys/class/gpio/export
      

      works

      But in voxl2 the numbering is different starts at 1072 and ends at 1280
      Screenshot from 2023-07-03 16-37-28.png

      gpiochip1100 has 180 in ngpio

      how to get exact number for gpio pin 12 in relation to above.
      can someone tell the mapping of gpio numbers.

      Viswanadh CheguV 1 Reply Last reply Reply Quote 0
      • Viswanadh CheguV
        Viswanadh Chegu @Viswanadh Chegu
        last edited by

        Found the offset
        its gpiochip1100
        so for gpio 12

        echo 1112 > /sys/class/gpio/export
        

        will enable gpio 12

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors