changed GPIO Write to Pin Write