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

Suggestion: Blink on-board LED to during deploy


  • Please log in to reply
3 replies to this topic

#1 hari

hari

    Advanced Member

  • Members
  • PipPipPip
  • 131 posts

Posted 30 September 2010 - 01:08 AM

Dear SecretLabs, Although Visual Studio Status bar and Output window clearly shows what goes on during a deploy to the Netduino, I think it would be comforting to see the embedded LED blink in sync with the bits being transferred from the PC.

#2 Eric Burdo

Eric Burdo

    Advanced Member

  • Members
  • PipPipPip
  • 130 posts

Posted 30 September 2010 - 01:49 AM

I have a tiny bit of code I throw into each project I do. It just flashes the LED a couple times when the program starts. Kinda gives me a half-second "hey you" so I know the app is starting. But the flashing lid to signify activity... that would be kinda neat.
~ Eric D. Burdo ~ http://brick-labs.com/

Today LED's, tomorrow, the world!!! Well, OK, maybe servos.

#3 mrxer

mrxer

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • LocationAustralia

Posted 08 January 2013 - 12:52 PM

Any suggest the best way to blink a led asychronously...wan to create a methoud called startblinking & stopblinking


tony


#4 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 08 January 2013 - 01:23 PM

If you are talking about from your application (rather than when deploying) then yes there is a relatively simple way.  Have a look at the post on Timers I have recently published.

 

You could use the ideas in that post to develop a class containing a timer.  This would fire at a defined interval and you would use the OutputPort idea to turn a LED on/off rather than one of the digital ports.

 

For the Start method you would simply instantiate the timer.  For the Stop method you would dispose of it.

 

You could wrap all of this up in its own class or just have it in the main program/class.

 

Hope this helps,

Mark

 

Edit - Added a clarification on the purpose of the application.


Edited by Nevyn, 08 January 2013 - 01:24 PM.

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter





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.