IOT102_-_SU_2024_-_RE_2414.webp
Yaga85

IOT102_-_SU_2024_-_RE_2414.webp

  • Media owner Yaga85
  • Ngày thêm
Kizspy | Question: 17
(Choose 1 answer)

int pin1 = 12;
What is the output of "pin1" if "pin2" is sent "1011" where 1 is 5V and 0 is OV?
int pin2 = 11;void setup() {
pinMode(pin1, OUTPUT);
pinMode(pin2, INPUT);
Serial.begin(9600);}void loop() { if(digitalRead(pin2)==1) { } digitalWrite(pin1,LOW);else if(digitalRead(pin2)==0) { digitalWrite(pin1, HIGH);}
}
A. 1110
Β. 0100
C. 1111
D. 1011
FUOVE

Thông tin

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

Share this media

Back
Bên trên Bottom