View Single Post
  #3   Spotlight this post!  
Unread 11-01-2004, 22:03
m0rph3us's Avatar
m0rph3us m0rph3us is offline
Registered User
AKA: Andre
#0293 (Spike)
Team Role: Programmer
 
Join Date: Feb 2003
Location: Hopewell, NJ
Posts: 32
m0rph3us will become famous soon enough
Send a message via ICQ to m0rph3us Send a message via AIM to m0rph3us Send a message via MSN to m0rph3us Send a message via Yahoo to m0rph3us
Cool Re: When would I use an interrupt?

The difference is that vButtonPressed(); will only be called when the if statement is being executed. With interrupts it doesn't matter what part of the code is being executed for if the button is pressed it will automatically call vButtonPressed();

One basicaly gives faster feedback than the other
__________________
Andre
Team S.P.I.K.E.293

Last edited by m0rph3us : 11-01-2004 at 22:08.