Power & Source of Big Ideas

Python support for IC2, SPI, etc.

Moderators: chensy, FATechsupport


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?

Hello, Dareis.

For I2C in Python try SMBUS2:

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 6 guests