py-adc is a Python library to interface with ADC devices.
- MCP3901
- MCP3911
pip3 install git+https://github.com/masatomizuta/py-adc
Build the extension module first.
python3 setup.py build_ext -i
- Enable SPI on a Raspberry Pi board:
sudo raspi-config nonint do_spi 0
- Start pigpiod:
sudo systemctl start pigpiod