Reworked light dependent brightness code
Integrated IR settability of brightness based on ambient brightness