3. Arduino GPIO Programming

Question.10

Harry built the following circuit. Which button will have a HIGH state initially?

const int button1Pin = 4;
const int button2Pin = 5;

void setup() {
  Serial.begin(115200);
  pinMode(button1Pin, INPUT);
  pinMode(button2Pin, INPUT_PULLUP);
}

void loop() {
}

Select Answer