Library for the SN3218 18-channel constant current LED driver
Project description
SN3218
Pre-requisites
You must enable:
- i2c:
sudo raspi-config nonint do_i2c 0
You can optionally run sudo raspi-config
or the graphical Raspberry Pi Configuration UI to enable interfaces.
Installing
Stable library from PyPi:
- Just run
python3 -m pip install sn3218
In most cases you'll need to run this in a virtual Python environment.
Latest/development library from GitHub:
git clone https://github.com/pimoroni/sn3218-python
cd sn3218-python
./install.sh --unstable
3.0.0
- BREAKING: Remove RPi.GPIO and bus autodetect
- BREAKING: Switch to smbus2
2.0.0
- BREAKING: Port to class.
- Legacy support for module methods, auto-instantiates a class
1.2.7
- Bugfix: Fix for Python 3.5
1.2.6
- Initial commit to Raspbian apt repository
1.2.5
- Initial commit to Raspbian apt repository
1.2.4
- Added alternate warning/instructions for missing python3-smbus
- Code quality improvements
1.2.3
- Print fix
1.2.2
- Added i2c_bus_id detection for older Pi
1.2.1
- Removed hard dependency upon SMbus, added message at runtime
1.0.0
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sn3218-3.0.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
sn3218-3.0.0-py3-none-any.whl
(6.6 kB
view hashes)