Question.4
Sarah builds the following circuit. Which of the following codes will read the switch properly?
Select Answer
void setup() { pinMode(4, INPUT_PULLUP); }
void setup() { pinMode(7, INPUT); }
void setup() { pinMode(7, INPUT_PULLUP); }
void setup() { pinMode(7, OUTPUT); }