Skip to main content

CircuitPython drivers for the LILYGO T-Deck peripherals.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython drivers for the LILYGO T-Deck peripherals.

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-lilygo-t-deck

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

sudo pip3 install circuitpython-lilygo-t-deck

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-lilygo-t-deck

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 lilygo_tdeck

Or the following command to update an existing version:

circup update

Usage Example

import time
from lilygo_tdeck import TDeck

t = TDeck()

while True:
    keypress = t.get_keypress()
    if keypress:
        print(keypress)
    time.sleep(0.1)

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-lilygo-t-deck-0.1.1.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file circuitpython-lilygo-t-deck-0.1.1.tar.gz.

File metadata

File hashes

Hashes for circuitpython-lilygo-t-deck-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b9c4dbfab043b756e417cdda19720585e2ea95d167dd69523cfb7cb5f645956
MD5 4ae8b7da3349ba2a42940ebb5791d732
BLAKE2b-256 64fee2ca66bc139e4dd7dd4ae5b2e7d6cb240b09ca05b88ed7bc46e22abe37d6

See more details on using hashes here.

File details

Details for the file circuitpython_lilygo_t_deck-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for circuitpython_lilygo_t_deck-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2376870e89d3f9fb165c70587f21717d33154cee5257945def2b74f5b7f24357
MD5 0bfc7b77a2de6089a9ef1ad1486cdc73
BLAKE2b-256 e4798cbbd573ca8d91270f194a3afe31ab9ffd30480c10035641da0755f5a569

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