• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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.
    • V
      Viswanadh Chegu
      last edited by Viswanadh Chegu 3 Jul 2023, 11:12 3 Jul 2023, 11:10

      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.

      V 1 Reply Last reply 6 Jul 2023, 05:35 Reply Quote 0
      • V
        Viswanadh Chegu @Viswanadh Chegu
        last edited by 6 Jul 2023, 05:35

        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
        1 out of 2
        • First post
          1/2
          Last post
        Powered by NodeBB | Contributors