ねえ、私は次のコードを持っています:
sVal = analogRead(potPin); // read the value from the sensor
valMin = min(sVal, 1);
valMax = max(sVal, 128);
constrain(sVal,valMin,valMax);
itoa(sVal, res, 10);
println(res);
println(" ");
delay(150);
clearScreen();
なんらかの理由で、gLCD画面の出力はほぼ常に1023です。ポテンショメータの最小値を1、最大値を128にします。