Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

Helper library for the Adafruit ESP32-S2 TFT Feather.

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.

Adafruit ESP32-S2 TFT Feather

Purchase one from the Adafruit shop

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 adafruit_esp32s2tft

Or the following command to update an existing version:

circup update

Usage Example

import random
from rainbowio import colorwheel
from adafruit_esp32s2tft import ESP32S2TFT

esp32s2tft = ESP32S2TFT(
    default_bg=0xFFFF00,
    scale=2,
)

# Create the labels
esp32s2tft.add_text(
    text="ESP32-S2", text_position=(10, 10), text_scale=2, text_color=0xFF00FF
)
esp32s2tft.add_text(
    text="TFT Feather",
    text_position=(60, 30),
    text_anchor_point=(0.5, 0.5),
    text_color=0xFF00FF,
)
button_label = esp32s2tft.add_text(
    text="Press BOOT0 Button",
    line_spacing=1.0,
    text_position=(60, 50),
    text_anchor_point=(0.5, 0.5),
    text_color=0x606060,
)
esp32s2tft.display.root_group = esp32s2tft.root_group

while True:
    esp32s2tft.set_text_color(
        0xFF0000 if esp32s2tft.peripherals.button else 0x606060, button_label
    )
    esp32s2tft.peripherals.led = esp32s2tft.peripherals.button
    if esp32s2tft.peripherals.button:
        esp32s2tft.peripherals.neopixel[0] = colorwheel(random.randint(0, 255))

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.

Metadata

Release files for adafruit-circuitpython-esp32s2tft 2.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-esp32s2tft 2.0.8
File Size Uploaded
adafruit_circuitpython_esp32s2tft-2.0.8.tar.gz 25.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-esp32s2tft 2.0.8
File Interpreter ABI Platform
adafruit_circuitpython_esp32s2tft-2.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 35.6 kB

Release files / adafruit_circuitpython_esp32s2tft-2.0.8.tar.gz

Download URL adafruit_circuitpython_esp32s2tft-2.0.8.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
db47d1e750b26717790099d5c61afa3a642c40039b6799ce6390a71219ba6174
BLAKE2b-256 checksum
How to use checksums
8c958dc6bae3d5b217f277360ebe23dabae1eeb7630b626edc4f4c02c31b768b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_esp32s2tft-2.0.8-py3-none-any.whl

Download URL adafruit_circuitpython_esp32s2tft-2.0.8-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b8080631aed2bc69e89d907abf937f70fac8dc5ffe92acde50d5c2bc55ec2e4
BLAKE2b-256 checksum
How to use checksums
b7cd1cb3e3968f671a845929aef63e46b9d19c1960dfbed5a517eae0e18c85ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

2.0.8 This release

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page