{"repo":"linusg/rpi-backlight","free":true,"listed":false,"github":"https://github.com/linusg/rpi-backlight","clone":"git clone https://github.com/linusg/rpi-backlight.git","description":"🔆 A Python module for controlling power and brightness of the official Raspberry Pi 7\" touch display","language":"Python","stars":290,"topics":["raspberry-pi","display","brightness","backlight","raspbian","touch-display","rpi-backlight","linux","python","python3"],"license":"MIT","category":"cli-tools","readme_excerpt":"rpi-backlight A Python module for controlling power and brightness of the official Raspberry Pi 7\" touch display. Note: This GIF was created using the old v1 API, so please don't use it as API reference 🙂 Features - Set the display brightness smoothly or abrupt - Set the display power on or off - Get the current brightness - Get the display power state (on/off) - Command line interface - Graphical user interface Requirements - A Raspberry Pi or ASUS Tinker Board including a correctly assembled 7\" touch display v1.1 or higher (look on the display's circuit board to see its version), or a Surface RT or an ARM Chromebook running a Linux-based OS - Python 3.7+ - Optional: Raspberry Pi: pygobject for the GUI, already installed on a recent Raspbian - Optional: Tinker Board: gir1.2-gtk-3.0 for the GUI install Installation Install from PyPI: Note: Create this udev rule to update permissions, otherwise you'll have to run Python code, the GUI and CLI as root when changing the power or brightness: Emulator For testing without a physical display (e.g. on your main Linux/macOS/Windows machine) you can use linusg/rpi-backlight-emulator . Usage API Example in a Python shell: For more details see docs. CLI Open a terminal and run rpi-backlight . For all available options see docs. GUI Open a terminal and run rpi-backlight-gui . Adding a shortcut to the LXDE panel See docs. Tests Tests use pytest , install with pip3 install pytest . Now, run from the repository root directory: Contributing P","default_branch":null,"files":null,"tree":[],"storefront":"/r/linusg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/linusg/rpi-backlight/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}