Suggestion: Blink on-board LED to during deploy
#1
Posted 30 September 2010 - 01:08 AM
#2
Posted 30 September 2010 - 01:49 AM
Today LED's, tomorrow, the world!!! Well, OK, maybe servos.
#3
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
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
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users