Pages: [1]   Go Down
Author Topic: Timer Interupt - LED Help?  (Read 341 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-sad 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 smiley

TNX!
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 197
Posts: 12741
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: