/py-adc

Python library for ADC devices

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

py-adc

py-adc is a Python library to interface with ADC devices.

Supported Devices

  • MCP3901
  • MCP3911

Install

pip3 install git+https://github.com/masatomizuta/py-adc

Development

Build the extension module first.

python3 setup.py build_ext -i

Note

  • Enable SPI on a Raspberry Pi board:
sudo raspi-config nonint do_spi 0
  • Start pigpiod:
sudo systemctl start pigpiod