added method for setting dimmed LEDs