Debug); } void loop() { int a = analogRead(A0); ... There is likely a bug in the Arduino code of the analogRead() function, as detailed here ... ... <看更多>
You need to add this to your setup(): pinMode(A0, INPUT); ...to set the pin for reading. Since you're reading an input that's already pulled up (in the ... ... <看更多>