pinMode and OUTPUT
Tell a pin it will drive current to an LED.
Pins Have a Job
Every Arduino pin can either listen or speak. Before you use one, you must tell it which job to do. That setup is the role of pinMode. 🔌
Why OUTPUT Mode
To light an LED, the pin must send current out into the world. You declare that intent by setting the pin to OUTPUT mode.