Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

Badge-focused CircuitPython helper library for PyBadge, PyBadge LC, PyGamer, CLUE, and Mag Tag.

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.

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 adafruit-circuitpython-pybadger

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

sudo pip3 install adafruit-circuitpython-pybadger

To install in a virtual environment in your current project:

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

Usage Example

from adafruit_pybadger import pybadger

pybadger.show_badge(name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3)

while True:
    pybadger.auto_dim_display(delay=10)
    if pybadger.button.a:
        pybadger.show_business_card(image_name="Blinka.bmp", name_string="Blinka", name_scale=2,
                                    email_string_one="blinka@", email_string_two="adafruit.com")
    elif pybadger.button.b:
        pybadger.show_qr_code(data="https://circuitpython.org")
    elif pybadger.button.start:
        pybadger.show_badge(name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3)

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.

Download files

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

Source Distribution

adafruit_circuitpython_pybadger-4.0.10.tar.gz (82.9 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file adafruit_circuitpython_pybadger-4.0.10.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_pybadger-4.0.10.tar.gz
Algorithm Hash digest
SHA256 7cdb62222229bb00ddf2abf71045f51a7f13bffb304c4692ca212fa54bf38a7d
MD5 f1a0b3f2ed0483aa83231e38f7cf9acf
BLAKE2b-256 6349fa84de388ecaa74821939618997caa65924ed1945dc1c530ce10a8c05601

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_pybadger-4.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_pybadger-4.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb2b415a30797b1965e1cae6029d3a12375f5c8b9213b454dbb0477e0534d92
MD5 1cfb88e0304d6c9448def9f63b04b777
BLAKE2b-256 223fcc899bf5664558f50e4167261c675349e0cef21df27c7b33a787fce57705

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.0.10 This release

2 files

4.0.9

2 files

4.0.8

2 files

4.0.7

2 files

4.0.6

2 files

4.0.5

2 files

4.0.4

2 files

4.0.3

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

3.8.1

2 files

3.8.0

2 files

3.7.14

2 files

3.7.13

2 files

3.7.12

2 files

3.7.11

2 files

3.7.10

2 files

3.7.9

2 files

3.7.8

2 files

3.7.6

2 files

3.7.5

2 files

3.7.4

2 files

3.7.3

1 file

3.3.7

2 files

3.2.2

1 file

3.2.1

1 file

3.2.0

1 file

3.1.1

1 file

3.1.0

1 file

3.0.1

1 file

3.0.0

1 file

2.2.2

1 file

2.2.1

1 file

2.2.0

1 file

2.1.4

1 file

2.1.3

1 file

2.1.2

1 file

2.1.1

1 file

2.1.0

1 file

2.0.0

1 file

1.1.1

1 file

1.1.0

1 file

1.0.2

1 file

Supported by

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