12v / Common Ground

If you use a MOSFET you can use PWM...

You will need series resistor (and a heatsink for the LED).