The diagnostics pin on your ECU pulls to ground to turn the light on.
Therefore to make it work you need to take fused 12V, connect it to an LED (right way round of course, and you need a suitable sized resistor in series with it too) then to your diagnostics pin (or whatever wire is hanging off that pin).
You can find the procedure for reading out codes and what each one means round here or elsewhere on the net.