Revert "hack for missing ambient light and illumination sensing"

This reverts commit 4a16e83014062984846abcb569436b5a40412d2a.
Revert "more pwm fixes"

This reverts commit 058228ae28bbe5eefdec44af1d71e56982d9eed6.