How to identify GPIO Chip and pin

53 views
Skip to first unread message

simonm...@gmail.com

unread,
Jul 2, 2019, 9:51:55 PM7/2/19
to BeagleBoard
Hi,
I am trying to use GPIO with the robot control library.
But I cant find the value to pass to chip and pin

ex : 
int rc_gpio_init (int chip, int pin, int handle_flags)




Thanks for your help

Tarmo Kuuse

unread,
Jul 3, 2019, 6:29:50 AM7/3/19
to BeagleBoard
Hi!


On Wednesday, 3 July 2019 04:51:55 UTC+3, simonm...@gmail.com wrote:
I am trying to use GPIO with the robot control library.
But I cant find the value to pass to chip and pin

ex : 
int rc_gpio_init (int chip, int pin, int handle_flags)

I've used Derek Molloy's excellent GPIO tables for reference. Regarding your question column "Mode 7" would seem to indicate chip and pin numbers, e.g. gpio1[6] would be chip 1, pin 6.


--
Kind regards,
Tarmo
Reply all
Reply to author
Forward
0 new messages