Reputation: 313
I am testing brightnessoverride
class for UWP on Raspiberry Pi. I am not sure if it supports Raspberry Pi with RaspberryPi official 7" touch screen LCD.
I am trying to setbrightnessvalue
as follow;
displayBrightness = BrightnessOverride.GetForCurrentView();
displayBrightness.SetBrightnessLevel(0.50, DisplayBrightnessOverrideOptions.None);
displayBrightness.StartOverride();
but I get an exception
message as below
"Error HRESULT E_FAIL has been returned from a call to a COM component."
Can anyone help to explain? Thank you.
Upvotes: 0
Views: 130
Reputation: 9700
BrightnessOverride API provides the ability to have per-application brightness control on devices that support controllable brightness.
To check if the device support it you can check BrightnessOverride.IsSupported. For Raspberry Pi with official 7" touch screen, this value is false.
Upvotes: 0