add TOGGLE to pinWrite.