control pins independently without delay()