-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I can't find a plugin for a light that is controlled through the command line. I have a Raspberry Pi touch screen that I would like to be able to control as a light source. It has an ON and OFF status but also a light intensity setting through the following commands:
Would it be possible to extend this plugin for use with light sources like these?
'''
usage: rpi-backlight [-h] [--get-brightness] [-b VALUE] [--get-power]
[-p VALUE] [-d DURATION] [-B {raspberry-pi,tinker-board}]
[-V]
[SYSFS_PATH]
Get/set power and brightness of the official Raspberry Pi 7" touch display.
positional arguments:
SYSFS_PATH Optional path to the backlight sysfs, set to
:emulator: to use with rpi-backlight-emulator
optional arguments:
-h, --help show this help message and exit
--get-brightness get the display brightness (0-100)
-b VALUE, --set-brightness VALUE
set the display brightness (0-100)
--get-power get the display power (on/off)
-p VALUE, --set-power VALUE
set the display power (on/off/toggle)
-d DURATION, --duration DURATION
fading duration in seconds
-B {raspberry-pi,tinker-board}, --board-type {raspberry-pi,tinker-board}
board type
-V, --version show program's version number and exit
'''