Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using this plugin for a light #7

Open
filmgarage opened this issue Nov 10, 2021 · 0 comments
Open

Using this plugin for a light #7

filmgarage opened this issue Nov 10, 2021 · 0 comments

Comments

@filmgarage
Copy link

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
'''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant