Warning Oncoming Drivers of Speed Traps By Flashing High Beams it Seems is Legal
So now you know. If you pass a police officer at a speed trap, you can flash your headlights to warn upcoming drivers of their presence and not get pulled over at least for just that. It is constitutionally protected under the first amendment.