Hi,
Instead of attaching pin #2 of the Nano to the switch, try attaching it to +5V. That should light up the LED just like the switch.
Hi,
Instead of attaching pin #2 of the Nano to the switch, try attaching it to +5V. That should light up the LED just like the switch.