Nguyễn Vân Anh
New member
What is the output of the program given below if a 0V is put across pin 11?
A. 1
B. 0
C. 0.3
D. 1.001
Code:
int pin=11;
void setup() {
pinMode(pin, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
int a=digitalRead(pin);
Serial.println(a);
}
B. 0
C. 0.3
D. 1.001