OK … first time actually touching an Arduino.
I have a mega 2560
Got the software installed … loaded the program … onboard LED blinks … GREAT!
So, I wanted to put an external.
I understand I need to change the first line of the code from
to some other pin.
My question is what pin? I see an example showing pin 9
When I look, Pin 9 is a PWM output (on both the UNO and MEGA).
Do I need to use a PWM pin or could I use any of the pins marked Digital (say 30 though 40)?
I just wanted to make sure I was not going to draw to much power and kill the board the first night.
I do have a 330 ohm resistor in line with the LED.
Thanks … Mike