Added argument validation to setLedBrightness.