An updated guide is available in the Adafruit Learning System: CircuitPython on Linux and Raspberry Pi. A new page was added called Using I2C or SPI by Device ID describing how to use the Python Extended Bus library to specify the I2C or SPI device you would like to use.
One of the great things about linux systems is that each of the subsystems are stored as separate devices and so you can tell if the I2C or SPI device is available by looking in the
/dev/
folder. If your I2C or SPI devices are not showing up, make sure you followed the steps on the Installing CircuitPython Libraries on Raspberry Pi page.In order to maintain a certain level of compatibility with CircuitPython,
busio
was written to attempt to automatically detect which pins you had your I2C or SPI device set up to use. However, with the flexibility that the Raspberry Pi provides and the staggering number of possible pin combinations, there are definitely cases where it fails to detect it properly. This is why we wrote the Python Extended Bus library, which allows you to specify the bus and device ID so you can tell it exactly which device you want to use…
No comments:
Post a Comment