Introduction¶
Pure python (i.e. no native extensions) access to Linux IO including I2C and SPI. Drop in replacement for smbus and spidev modules.
Dependencies¶
This driver depends on:
Python 3.5 or higher
Installing from PyPI¶
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install Adafruit-PureIO
To install system-wide (this may be required in some cases):
sudo pip3 install Adafruit-PureIO
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install Adafruit-PureIO
Contributing¶
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation¶
For information on building library documentation, please check out this guide.
Table of Contents¶
API Reference
Adafruit_PureIO.smbus
SMBus
SMBus.close()
SMBus.open()
SMBus.process_call()
SMBus.read_block_data()
SMBus.read_byte()
SMBus.read_byte_data()
SMBus.read_bytes()
SMBus.read_i2c_block_data()
SMBus.read_word_data()
SMBus.write_block_data()
SMBus.write_byte()
SMBus.write_byte_data()
SMBus.write_bytes()
SMBus.write_i2c_block_data()
SMBus.write_quick()
SMBus.write_word_data()
i2c_msg
i2c_rdwr_ioctl_data
make_i2c_rdwr_data()
Adafruit_PureIO.spi
SPI