Go Down

Topic: Timer Interupt - LED Help? (Read 415 times) previous topic - next topic

alexus

Hey all I have LED that i need to pulse (like shifting) actually that's 7 segment LED... I got to output data to it but when i comes to adding code to my program ex i want to do a delay(1000) the led starts blinking as i disrupt the cycle...

As i understand i need to add something like interrupt but i have no idea how to do that :( Can some one point me to a good tutorial or give explanation?  I'm coming from windows programing so this is very hard for me to start thinking linearly again :)

TNX!

Coding Badly

Don't use delay.  Until you have more experience, stay away from interrupts.  Use this method for delaying...
http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay

alexus

ok let me try to adapt my code to use mills hopefully i can do that. tnx!

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