Skip to main content

CircuitPython module for the LTC2959 ultra-low power battery gas gauge.

Project description

Introduction

Discord Build Status Code Style: Ruff

CircuitPython module for the LTC2959 ultra-low power battery gas gauge.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.

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 circuitpython-ltc2959

To install system-wide (this may be required in some cases):

sudo pip3 install circuitpython-ltc2959

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .env/bin/activate
pip3 install circuitpython-ltc2959

Installing to a Connected CircuitPython Device with Circup

Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:

pip3 install circup

With circup installed and your CircuitPython device connected use the following command to install:

circup install ltc2959

Or the following command to update an existing version:

circup update

Usage Example

See examples/ltc2959_simpletest.py for a demo of the usage.

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

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

circuitpython_ltc2959-0.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circuitpython_ltc2959-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file circuitpython_ltc2959-0.1.0.tar.gz.

File metadata

  • Download URL: circuitpython_ltc2959-0.1.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for circuitpython_ltc2959-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5573f529f9196ba30494c27070e021826b7eb6d90cd17fcaff4c02ed314f5035
MD5 7cd0bb0b85fe13935f915d6ec34c9457
BLAKE2b-256 48cfe5a91d94ba3b91c32efd32d1132236fbefc19199fa75d8553f4a8f2a19aa

See more details on using hashes here.

File details

Details for the file circuitpython_ltc2959-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for circuitpython_ltc2959-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4af9da6893020363ccb130aae1a79e09c3f82579bd7c421274c16959fa33c264
MD5 452c4e4d277cebce23cc14bbc4511b9c
BLAKE2b-256 0527e05e80264a6efd54c33a20d80047dec6ef73c1f323e9d85a1fb4b740a473

See more details on using hashes here.

Supported by

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