Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

How do interrupts work?


  • Please log in to reply
1 reply to this topic

#1 Zoidberg

Zoidberg

    New Member

  • Members
  • Pip
  • 3 posts

Posted 21 December 2011 - 12:06 AM

Hi, I'd like to know how interrupts actually work. I just tried flashing the onboard LED and using the switch to start/stop the flashing but found that it would respond slowly to the press that should leave the LED turned off. My code is http://paste2.org/p/1832360 if you want to take a look but it's quite messy. I press the button when the LED is off which should end the main (inner) loop and leave the LED off but what I'm seeing is the LED turn back on and stay on until I press the button again when it'll just resume flashing.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 21 December 2011 - 12:35 AM

Hi Zoidberg, I'd try simplifying your code a little bit. There's a tutorial on this on the projects page...which should help you get started. If that doesn't help, let us know...and we'll help point you in the right direction. Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.