get Brightness By Lux
The function should return a brightness value that is calculated fro the given lux value
Called only when the auto brightness is enabled
brightness = f(lux)
The returned value should be in range of 1,255, where:
values above 255 will be reduced to 255
values of 0 or below will be ignored
Return
the calculated brightness value 1,255]
Parameters
lux
the current reading of the ambient sensor