Skip to content
pramode edited this page Jun 16, 2011 · 2 revisions

Light up LED on P1.0 (red led)

 #include <msp430g2231.h>

 main()
 {
    P1DIR = 1;
    P1OUT = 1;
 }

Compile with: msp430gcc -mmcu=msp430x2231 a.c

Flash with mspdebug:

 mspdebug rf2500
 prog a.out
Clone this wiki locally