Go Down

Topic: PROGRAM FOR LED BLINKING IN ATMEGA2560 (Read 755 times) previous topic - next topic

karthikeyan

PROGRAM FOR LED BLINKING IN ATMEGA2560

AWOL

Try to make your post not simply repeat the title, and don't SHOUT.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cjdelphi


Tom Carpenter

I don't see your code.

I gather from your post that you are sharing code the blink an LED with an ATMega2560.

I'm *very interested* to see your code.
~Tom~

BulletMagnet83

http://cappels.org/dproj/simplest_LED_flasher/Simplest_LED_Flasher_Circuit.html

karthikeyan

sir i need code for LED blinking in arduino mega 2560 micro controller

CrossRoads

Pretty basic:
Code: [Select]

void setup(){
pinMode (13, OUTPUT);
}
void loop(){
digitalWrite (13, HIGH);
delay (500);
digitalWrite (13, LOW);
delay (500);
}

Change 13 to the pin you want to use if something else.
What part are you having trouble with?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

karthikeyan


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy