DC12V-24V dimming switch controller