2. Arduino GPIO Programming Basics

Question.5

Sam needs to detect a switch on pin 7 of his Arduino Uno. If pressed, it should turn ON an LED on pin 13; if not, the LED stays OFF. Could you suggest the working code?

Select Answer