add fucntion setpinvalue rename function setpin in setpinstate