Code to reverse polarity for clock every minute.