.net - Raspberry Pi 2 model B - Mono C# PIN numbering -


i have raspberry pi 2 model b. use https://github.com/cypherkey/raspberrypi.net write apps in c#. have problem pin numbering.

i tried everything, not work.

can explain me can pin number?

for example: when have on pin gpio17 (http://elinux.org/file:pi-gpio-header.png on table), how can locate c#?

the project description suggests

using mike mccauley's bcm2835 library available here.

its documentation states

pin numbering

the gpio pin numbering used rpi different , inconsistent underlying bcm 2835 chip pin numbering. http://elinux.org/rpi_bcm2835_gpios

...

the functions in library designed passed bcm 2835 gpio pin number , not rpi pin number. there symbolic definitions each of available pins should use convenience. see rpigpiopin.

luckily these different numbering schemes resolved gpiopins enum both defined in terms of bcm gpio pin numbers (first example) , gpio pins on connector p1 (second example):

v2_gpio_00 = 0, v2_pin_p1_03 = 2, 

to pick pin on connector use _pin_p1_nn notation. mind different definitions different types , revisions of pi.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -