const int potPin = 34;
// giá trị đo được
int potValue = 0;
void setup() {
Serial.begin(115200);
delay(1000);
}
void loop() {
// Đọc giá trị analog
potValue = analogRead(potPin);
Serial.println(potValue);
delay(500);
}
const int potPin = 34;
// giá trị đo được
int potValue = 0;
void setup() {
Serial.begin(115200);
delay(1000);
}
void loop() {
// Đọc giá trị analog
potValue = analogRead(potPin);
Serial.println(potValue);
delay(500);
}