I am not a programmer or a technical expert so I can't answer those questions. If you take a photo with the camera app the leds seem less bright when focusing compared to the "photo flash".
If dimming is not a good idea