started reading pins rather than setting them every cycle