GPIO on UDOObuntu 2.0 Beta 2

Discussion in 'Linux Ubuntu' started by psaitz, Oct 15, 2015.

  1. psaitz

    psaitz New Member

    Joined:
    Oct 22, 2013
    Messages:
    4
    Likes Received:
    1
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear psaitz,
    in the previous version those folder were exposed. The command to have those folder exposed is:

    where XX is a number related to the GPIO that can take from this image (check the number on the white label)

    http://udoo.org/download/files/pinout/Udoo_pinout_diagram.pdf
     
  3. psaitz

    psaitz New Member

    Joined:
    Oct 22, 2013
    Messages:
    4
    Likes Received:
    1
    Thanks Andrea, echo XXX > export works fine.
    But after a reboot, the exported gpioXXX directories are lost and I have to export the required pins again. Another disadvantage is: export requires root priviledges and the created directory/files are assigned to root/root. So I have to chgrp and chmod too. Otherwise standard users have no access to GPIO pins.
     
    SO_yeah likes this.
  4. igorpec

    igorpec UDOOer

    Joined:
    Jan 25, 2015
    Messages:
    28
    Likes Received:
    13
    This is the usual / standard way of dealing with GPIOs as seen on other boards. Perhaps it's not ideal but it's standard.

    If you change this, people will need to adjust/port existing scripts. I can imagine the anger ;)
     

Share This Page