add public method to set all pins at once