0
\$\begingroup\$

I'm new with this. I'm trying to make an incremental blinking LED with every time that I push the button, I'm using Energia and Launchpad MSP430, I don't know if somebody can give a example code to do this?

\$\endgroup\$
  • 1
    \$\begingroup\$ We don't has teh codez [sic]. \$\endgroup\$ – Nick Alexeev Mar 8 '14 at 4:19
  • 3
    \$\begingroup\$ @NickAlexeev - While I do agree this is not the proper forum for requests like this, I do think having simple examples for getting started is invaluable, particularly when using a new platform. If the question was for anything more complex then just blinking a LED and reading a button, I'd be inclined to dismiss it as someone trying to shirk work, but for the real basics, it's still nice to have something to work from. The initial bringup (e.g. set up clocks, jump to the right place, etc...) is often the hardest, since there is little feedback to help troubleshoot. \$\endgroup\$ – Connor Wolf Mar 8 '14 at 4:39
  • \$\begingroup\$ Please show some additional effort and tell us what you have already tried. \$\endgroup\$ – Rev1.0 Jun 7 '14 at 23:05
1
\$\begingroup\$

Energia has great tutorials at http://energia.nu/Guide_index.html

Mainly the Button Tutorial (use a pushbutton to control an LED.)

And the Button State Change Tutorial (counting the number of button pushes.)

A little modification of both will give you what you need.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.