Phạm Công Thành
New member
What is the purpose of the code given below?
A. To demonstrate the working of the INPUT_PULLUP argument
B. To emulate the working of the OUTPUT argument
C. To emulate the analogRead method
D. To reset all input to 0
Code:
int pin=11;
void setup() {
pinMode(pin, INPUT);
Serial.begin(9600);
}
void loop() {
int a=1023-analogRead(pin);
Serial.println(a);
}
B. To emulate the working of the OUTPUT argument
C. To emulate the analogRead method
D. To reset all input to 0