HyperPixel 2" Round Touch Driver
Pre-requisites
You must install the HyperPixel 2r drivers which enable an i2c bus for the touch IC - https://github.com/pimoroni/hyperpixel4/tree/hp2-round
Installing
Stable library from PyPi:
- Just run
pip3 install hyperpixel2r
In some cases you may need to use sudo or install pip with: sudo apt install python3-pip
Latest/development library from GitHub:
git clone https://github.com/pimoroni/hyperpixel2r-pythoncd hyperpixel2r-pythonsudo ./install.sh
Usage
Set up touch driver instance:
touch = Touch(bus=11, i2c_addr=0x15, interrupt_pin=27):
Touches should be read by decorating a handler with @touch.on_touch.
The handler should accept the arguments touch_id, x, y and state.
touch_id- 0 or 1 depending on which touch is trackedx- x coordinate from 0 to 479y- y coordinate from 0 to 479state- touch stateTruefor touched,Falsefor released
For example:
@touch.on_touch
def handle_touch(touch_id, x, y, state):
print(touch_id, x, y, state)
Changelog
0.0.1
- Initial Release
Metadata
Release files for hyperpixel2r 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hyperpixel2r-0.0.1.tar.gz | 3.9 kB | Without provenance | Details for hyperpixel2r-0.0.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hyperpixel2r-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for hyperpixel2r-0.0.1-py3-none-any.whl |
| hyperpixel2r-0.0.1-py2-none-any.whl | Python 2 | none | any | Details for hyperpixel2r-0.0.1-py2-none-any.whl |
Total release size: 12.0 kB
Release files / hyperpixel2r-0.0.1.tar.gz
| Download URL | hyperpixel2r-0.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
359461e292915bc76c352695deb899f6303d8f4f8567b7fa7a09c49cbdba3eca
|
|
BLAKE2b-256 checksum How to use checksums |
cc46bbb94bacbb582e5eabfd1eba5a30ae175425d910908009aa80116ca39b7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / hyperpixel2r-0.0.1-py3-none-any.whl
| Download URL | hyperpixel2r-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d49939f0b357c701c4c016ce49e17192596e2ee348cfc1bc37f32a9e5f418f2
|
|
BLAKE2b-256 checksum How to use checksums |
0be5717b07d02d24de95154b68b379f03e19c3b9d460c6c3a0fec493b41b555d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / hyperpixel2r-0.0.1-py2-none-any.whl
| Download URL | hyperpixel2r-0.0.1-py2-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
1082d44957e6cac49359832f8680a548c8a4e3aaaa4d1ae48b9b6e9bab797242
|
|
BLAKE2b-256 checksum How to use checksums |
b2f1f4ee66c1091cf9d0fb7b4b3a69aab89a06ac292eb2e4fc23b3e3758fa9af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Security for hyperpixel2r 0.0.1
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.