Skip to main content

XPT2046_asukiaaa_python

Python library for XPT2046 Touchscreen. This library references Luca8991/XPT2046-Python and Adafruit_CircuitPython_RGB_Display.

Usage

Enable SPI for Raspberry Pi

sudo raspi-config nonint do_spi 0

No need to reboot.

Wiring

Raspberri Pi <--> XPT2046
MOSI (GPIO10) <--> DIN
MISO (GPIO9) <--> DO
SCLK (GPIO11) <--> CLK
GPIO7 or any <--> CS
3V3 <--> VCC
GND <--> GND

This library does not use IRQ pin.

Code, same as in tests/print_touch.py file:

from XPT2046_asukiaaa_python import XPT2046
import board
import busio
from digitalio import DigitalInOut
from time import sleep

cs = DigitalInOut(board.D7)
spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
touch = XPT2046(spi, cs=cs)

print("start monitoring touch")

while True:
    touch.update()
    if touch.coordinate is not None:
        print(touch.coordinate)
    sleep(.01)

License

MIT

References

Metadata

Release files for XPT2046-asukiaaa-python 1.0.0

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

Source distribution (sdist)

Source distribution for XPT2046-asukiaaa-python 1.0.0
File Size Uploaded Provenance
XPT2046-asukiaaa-python-1.0.0.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for XPT2046-asukiaaa-python 1.0.0
File Interpreter ABI Platform
XPT2046_asukiaaa_python-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / XPT2046-asukiaaa-python-1.0.0.tar.gz

Download URL XPT2046-asukiaaa-python-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49919fea701f5956dc190cba8572035d03c68d3232b0eead0ba515514319d562
BLAKE2b-256 checksum
How to use checksums
e56000b9df4d9597d3b275ce00e145b13c4b25f8ed6850bf353d54e9a55a59c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / XPT2046_asukiaaa_python-1.0.0-py3-none-any.whl

Download URL XPT2046_asukiaaa_python-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27f58842b0cb017e2c60470b6ba9d05a2ee8823f19a7b38f37846529aadecf82
BLAKE2b-256 checksum
How to use checksums
e1da8591d1515233cf208e1185a1efa64f56a0723708942a26c698836c80a156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Security for XPT2046-asukiaaa-python 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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