Do yourself a big favour and get the JD Technical manual for your mower
If nothing else it will bring an extra $ 200 when you sell it even if it is not working .
JD have a habit of changing the wire colour every time it passes through a plug
I do not have an LX 277 manual, but on the LX 188 it is yellow + black then goes to yellow + White then yellow then red
And the power supply actually comes via a relay .