Introduction

July 25, 2023 ยท View on GitHub

.. image:: https://readthedocs.org/projects/circuitpython-gauge/badge/?version=latest :target: https://circuitpython-gauge.readthedocs.io/ :alt: Documentation Status

.. image:: https://github.com/jposada202020/CircuitPython_Gauge/workflows/Build%20CI/badge.svg :target: https://github.com/jposada202020/CircuitPython_Gauge/actions :alt: Build Status

.. image:: https://static.pepy.tech/personalized-badge/circuitpython-gauge?period=total&units=international_system&left_color=grey&right_color=blue&left_text=Pypi%20Downloads :alt: Total PyPI downloads :target: https://pepy.tech/project/circuitpython-gauge

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code Style: Black

CircuitPython Gauge. Simple customizable gauge widget.

.. image:: https://github.com/jposada202020/CircuitPython_gauge/blob/main/docs/gauge.png

.. image:: https://github.com/jposada202020/CircuitPython_gauge/blob/main/docs/7miijo.gif

Dependencies

This driver depends on:

  • Adafruit CircuitPython <https://github.com/adafruit/circuitpython>_

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI <https://pypi.org/project/circuitpython-gauge/>_. To install for current user:

.. code-block:: shell

pip3 install circuitpython-gauge

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

.. code-block:: shell

sudo pip3 install circuitpython-gauge

To install in a virtual environment in your current project:

.. code-block:: shell

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

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:

.. code-block:: shell

pip3 install circup

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

.. code-block:: shell

circup install gauge

Or the following command to update an existing version:

.. code-block:: shell

circup update