Implemented PWM based LED dimming and brightening.