Python support for IC2, SPI, etc.
Posted: Thu Sep 12, 2019 4:09 pm
Forum,
I want to use python calls for peripherals like i2c and SPI. Is there a standard and easy way to do with with my NEO AIR, or python library to do this?
Normally on my RPi and my BeagleBoneBlack I use a platform agnostic python library https://github.com/adafruit/Adafruit_Python_GPIO. This is a wrapper around different hardware to use a single IO scheme. Its nice because I can develop code on whichever hardware I have around me. Then you use an adapter class to control the hardware specifics. There are scripts for SPI, I2C, PWM, etc. What I need help with is how to assign pins. My hope would be that I could use the RPI.GPIO_NP lib to interface and be set. But I'm afraid it is going to be more work. Any thoughts?
Thanks,
Darren
I want to use python calls for peripherals like i2c and SPI. Is there a standard and easy way to do with with my NEO AIR, or python library to do this?
Normally on my RPi and my BeagleBoneBlack I use a platform agnostic python library https://github.com/adafruit/Adafruit_Python_GPIO. This is a wrapper around different hardware to use a single IO scheme. Its nice because I can develop code on whichever hardware I have around me. Then you use an adapter class to control the hardware specifics. There are scripts for SPI, I2C, PWM, etc. What I need help with is how to assign pins. My hope would be that I could use the RPI.GPIO_NP lib to interface and be set. But I'm afraid it is going to be more work. Any thoughts?
Thanks,
Darren