1 2 3 4 5 6 7 8 9 10 11 12 13 | const int sPin = A0; void setup() { Serial.begin(9600); } void loop() { int sValue = analogRead(sPin); Serial.println(sValue); delay(750); } |
シリアルモニター
184
274
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
0
1023
69
930
うーむ、ちょっと期待している値ではないな。