I purchased a brake light that has 3 wires; red, yellow, black. To test it, I used a 9v battery.
When I run current through the red and black, I get the usual light when riding.
When using yellow and black, the light is brighter. I'm assuming that's when you applied the brake.