Q23.webp
G

Q23.webp

Kizspy | Question: 23
(Choose 1 answer)
What happens to the LED's blink rate in the given code when the potentiometer is turned all the way to provide
the maximum voltage to the analog pin?
const int ledPin = 13;
const int sensorPin = A0;
int sensorValue = 0;
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
void loop() {
}
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
digitalWrite(ledPin, HIGH);"
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
A. The LED blinks faster.
B. The LED blinks slower.
C. The LED stops blinking.
D. The LED blinks at a constant rate regardless of the potentiometer's position.

Thông tin

Category
IOT102
Thêm bởi
Gluttony2001
Ngày thêm
Lượt xem
3,424
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom