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?

  • 1
    \$\begingroup\$ We don't has teh codez [sic]. \$\endgroup\$ Mar 8, 2014 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\$ Mar 8, 2014 at 4:39
  • \$\begingroup\$ Please show some additional effort and tell us what you have already tried. \$\endgroup\$
    – Rev
    Jun 7, 2014 at 23:05

1 Answer 1


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.


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.