finnally got the auto brightness working

Added the file /sys/module/leds_microp_htckovsky/parameters/auto_brightness to control auto brightness and write to this from the lights library