val = analogRead(potPin); // read the voltage on the pot (val ranges // from 0 to 1023) percent = map(val,0,1023,0,100); // percent will range from 0 to 100 ...
確定! 回上一頁