Go Down

Topic: Timer Interupt - LED Help? (Read 398 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