Jump to content

Managing flashing LED


Recommended Posts

Posted
Hello to all,

I am a beginner and I need your help: I would like to present only the LED flash with a delay of 500ms, but this occurs affecting the entire program.
Is there a way to isolate only the part that interests me?
 
 

Thanks for your attention

 

post-51996-0-13177900-1401114865_thumb.p

Posted

You have a data dependency between your two loops.  Combine the loops into a single loop.  You can have a counter keep track of your time to state when to toggle your LED.

Posted

I solved the LED :yes: 

 

Currently I have added a beep but creates a delay of 500 ms throughout the program
How can I do?
thanks for your attention

post-51996-0-21967400-1401434877_thumb.p

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.