Control PI Touch Screen with GPIO
Project description
PiTouchScreen
Programmatically control the Raspberry Pi Touch Display
Features
GPIO Control
With a button connected to pin 17:
- Cycle brightness between 50, 100, 150
- Long-press button for 1 second to turn off the screen
pi-touch-screen pi-touch-screen --channel 17 -bl 50 -bl 100 -bl 150 --power-sec 1
Thread-safe
- `BacklightManager` provides thread-safe attribute access and thread-safe sysfs read/writes - Reading or setting values requires owning a lock - Prevents race conditions from threaded callbacksInstall as Service
- Save
pi_touch_screen_service.serviceto$HOME/.config/systemd/user/pi_touch_screen_service.service - Run
systemctl --user edit pi_touch_screen_serviceand modifyExecStartto use your desired parameters - Run
systemctl --user enable pi_touch_screen_serviceto run the service at startup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pi-touch-0.1.0.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pi-touch-0.1.0.tar.gz.
File metadata
- Download URL: pi-touch-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14c4499f8f05efb0f1cd4cebf651b7e80886af0bb2f5c2d01926dd749975473b
|
|
| MD5 |
c0c126acbf1fb378116e1d5b6b392d40
|
|
| BLAKE2b-256 |
4cf385b6a56c4d33f2e63c8bc0cad9b87403a0c678659f70567a39768dc03b76
|
File details
Details for the file pi_touch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pi_touch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a1eebc64a7ffbd86d88e0c456bf0724f77a208ccc54f9ddd3110ba265c94279
|
|
| MD5 |
d026f5e5098e5616ce0b312319873bd5
|
|
| BLAKE2b-256 |
0ee8f62bbc369ce35a00fdee66e1c7e979eea989bcf8eba028025b4ffff5df3d
|