-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add Brightness Slider or buttons #103
Comments
The UI portion of this would be easy to setup with just configuration by using a vertical or horizontal bar gauge with an 'up' and 'down' transparent button on top of the gauge. We would need a plugin in fix gateway that would set the screen brightness based on the value changed by the buttons. |
There is a "dimmer" plugin for FiXGateway. It writes to a Linux device file that sets the screen brightness. The MakerPlane 5 in display may not play nice with the Linux driver and therefore needs the above code. I'm not sure. I'll try to find some time to play with it. |
I created an example dimmer control and submitted a pull request #189
I did not merge the pull request because this also requires adding some new fixids to the fixgateway and without some mechanism to auto-update default configuration files this could be a breaking change for some users. |
We will need to add in a brightness control for specific control of the GPIO PWM for the Pi. I know we have also discussed a global brightness control that will dim or brighten the whole panel. Right now we cannot control the brightness of the display from within pyEfis.
Code supplied by Steve to control this follows. Also suggest that it does not dim to 0 as that would be a black screen. Come up to 10 so that the screen can still be seen and not confused with an off screen:
I think that there are two options potentially.
The text was updated successfully, but these errors were encountered: