Bob wants to use an LED connected to GPIO pin 4 on his ESP32. Which of the following code snippets will correctly configure the pin to control the LED?
void setup() { pinMode(4, INPUT); } void loop() { }
void setup(){ pinMode(4, OUTPUT); } void loop(){ }
void setup() { pinMode(4, INPUT_PULLUP); } void loop() { }
void setup() { pinMode(4, INPUT_PULLDOWN); } void loop() { }