I would like to have three led lights on the front and rear of a locomotive (garden railways) so 6 leds in total. These are (LED, bi-colour, 5 mm, red + yellow 3 Pins - L-59EYW).
The part I'm struggling with is when the current reverses (direction of locomotive changes) I need the lamps to change, so the rear would go all red and the front all yellow, and vice versa. The voltage is a maximum of 12VDC and and the leds are 2.1V in one direction and 2.4V in the other. Would anyone be able to draw a diagram that I can follow to make this work?