This thread:

https://www.stratosec.com/Forum/show...dlights-A-PITA

covers the fundamentals of how they should work in excruciating detail….once you understand how they are supposed to work, making them behave is simple enough.

The Ford/Mazda parts use the exact same technique but spread the components about differently so they can seem quite different.