SetBrightness(value);
Value should be a decimal in the range from 0 to 1. To restore to the system default, use -1.
To get the current brightness level, use GetBrightness().
GetBrightness()
To prevent the screen from sleeping, use SetKeepScreenOn(true).
SetKeepScreenOn(true)