read / write pin data