Skip to main content

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 callbacks
Install as Service
  • Save pi_touch_screen_service.service to $HOME/.config/systemd/user/pi_touch_screen_service.service
  • Run systemctl --user edit pi_touch_screen_service and modify ExecStart to use your desired parameters
  • Run systemctl --user enable pi_touch_screen_service to run the service at startup

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

pi-touch-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pi_touch-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for pi-touch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14c4499f8f05efb0f1cd4cebf651b7e80886af0bb2f5c2d01926dd749975473b
MD5 c0c126acbf1fb378116e1d5b6b392d40
BLAKE2b-256 4cf385b6a56c4d33f2e63c8bc0cad9b87403a0c678659f70567a39768dc03b76

See more details on using hashes here.

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

Hashes for pi_touch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1eebc64a7ffbd86d88e0c456bf0724f77a208ccc54f9ddd3110ba265c94279
MD5 d026f5e5098e5616ce0b312319873bd5
BLAKE2b-256 0ee8f62bbc369ce35a00fdee66e1c7e979eea989bcf8eba028025b4ffff5df3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page