Control program for traffic lights