python Pin control for all io pins
Posted: Thu Sep 12, 2019 4:01 pm
I've just got my NEO AIR and I'm trying to access io. I'm trying to use RPI.GPIO_NP https://github.com/auto3000/RPi.GPIO_NP. But I can't interface with many of my pins. When I deep dive into WiringNP, only some of the I/O are addressed, others just have -1 on them. I can't figure out when they're functional, and when not. I bought the AIR expecting to use all pins.
look at the source here https://github.com/friendlyarm/WiringNP/blob/master/wiringPi/wiringPi.c#L508. When I run on my NEO AIR and look at the characteristics of the headers, consider the usb/audio header (pic attached). all except 1 of the pins on this header have no mode, and do not work. So when I run the demo "led.py" assigned to pin 32, which should be an i2c pin, one that I need for my project, python spits a value error that the channel is invalid for RPi. Fine. Then when I run assigned to phys pin 31, i same thing. This made me think it is an "off" problem. But when I run the script assigned to physical pin 16, also an 'off' pin, it works. This doesn't make sense. What am i doing wrong? I need help getting IO access to all of the pins, even ones that are not RPi standard ones.
Thanks,
Darren
look at the source here https://github.com/friendlyarm/WiringNP/blob/master/wiringPi/wiringPi.c#L508. When I run
Code: Select all
gpio readall
Thanks,
Darren