Questions about GPIO
#12
(02-16-2016, 11:45 PM)patrickhwood Wrote:
(02-16-2016, 03:15 PM)limitlesscodes Wrote: Alright, so I kind of figured out pin assignment using the GPIO image on the wiki. I still would like to know what PC, PD, PH, etc. means and when to use them vs. others. Also I would like to know if there is any better way of exporting the pins through C rather than doing something like:
Code:
//near beginning of file
system("echo 71 > /sys/class/gpio/export")
and
Code:
//near end of file
system("echo 71 > /sys/class/gpio/unexport")

You can fopen the file and write the string "71" to it like your first post.  That's essentially what the echo is doing.
You are right! I knew I was missing something :p thanks.


Messages In This Thread
GPIO ports - by igna09 - 12-31-2015, 04:31 AM
RE: GPIO ports - by o9guy - 12-31-2015, 10:28 AM
RE: GPIO ports - by limitlesscodes - 02-07-2016, 01:56 PM
RE: GPIO ports - by tllim - 02-07-2016, 08:25 PM
RE: GPIO ports - by limitlesscodes - 02-10-2016, 12:25 AM
RE: GPIO ports - by tllim - 02-10-2016, 06:53 PM
Questions about GPIO - by limitlesscodes - 02-14-2016, 05:49 PM
RE: Questions about GPIO - by patrickhwood - 02-14-2016, 07:12 PM
RE: Questions about GPIO - by limitlesscodes - 02-15-2016, 06:05 PM
RE: Questions about GPIO - by limitlesscodes - 02-16-2016, 03:15 PM
RE: Questions about GPIO - by patrickhwood - 02-16-2016, 11:45 PM
RE: Questions about GPIO - by limitlesscodes - 02-17-2016, 03:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GPIO specifications in device tree ramstadt 1 3,107 01-16-2019, 03:17 PM
Last Post: ramstadt
  +PINEBOOK Q4OS Pinebook Questions StewB 0 2,197 08-24-2017, 03:53 PM
Last Post: StewB
  Low-Level-GPIO-Access Thoams131 2 4,096 01-11-2017, 02:54 PM
Last Post: Thoams131
Question PPS-GPIO Sebastian 11 15,881 07-12-2016, 07:25 PM
Last Post: tllim
  C#.NET / Mono GPIO library? abutler77 0 2,921 06-12-2016, 10:34 PM
Last Post: abutler77
  Lazarus and GPIO gbestwick 0 2,130 05-22-2016, 08:51 PM
Last Post: gbestwick
  GPIO javascript library. neeeds 1 3,571 02-19-2016, 11:31 PM
Last Post: limitlesscodes

Forum Jump:


Users browsing this thread: 1 Guest(s)