Skip to main content

Library for the SN3218 18-channel constant current LED driver

Project description

SN3218

Build Status Coverage Status PyPi Package Python Versions

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 pip3 install sn3218

In some cases you may need to use sudo or install pip with: sudo apt install python3-pip

Latest/development library from GitHub:

  • git clone https://github.com/pimoroni/sn3218-python
  • cd sn3218-python
  • sudo ./install.sh --unstable

Changelog

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 dependancy upon SMbus, added message at runtime

1.0.0

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sn3218-2.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

sn3218-2.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sn3218-2.0.0.tar.gz.

File metadata

  • Download URL: sn3218-2.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for sn3218-2.0.0.tar.gz
Algorithm Hash digest
SHA256 54beb6012bee63ed4828544a0c63d572b7b2267701f506fdc27a7854d7c82fde
MD5 222506b62fbfeddacd4fd74409064d20
BLAKE2b-256 d704e21d7f5b932a825eb8e2ab5c9b16e9be61007b97694f044f99e7e9f8ee8d

See more details on using hashes here.

File details

Details for the file sn3218-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sn3218-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for sn3218-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b130e208bc32c6ac8ac267a52800b330b3acd0f2529533ad8cd3b8cfd8a5d8
MD5 1fba471de4e01d5af512f74365028279
BLAKE2b-256 2da8168f2735fbb1c4461db7274d1111dd32ad634b5ed70cf2941296e7f1a0b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page