334
void System_graceInit(void);
void WDTplus_graceInit(void);
void show_value(unsigned char value);
void main(void)
{
unsigned char s = 0;
char txt1[] = {"MICROARENA"};
char txt2[] = {"SShahryiar"};
char txt3[] = {"MSP-EXP430G2"};
char txt4[] = {"Launchpad!"};
/* Stop watchdog timer from timing out during initial start-up. */
WDTCTL = WDTPW | WDTHOLD;
/* initialize Config for the MSP430 GPIO */
GPIO_graceInit();
/* initialize Config for the MSP430 2xx family clock systems (BCS) */
BCSplus_graceInit();
/* initialize Config for the MSP430 USI */
USI_graceInit();
/* initialize Config for the MSP430 System Registers */
System_graceInit();
/* initialize Config for the MSP430 WDT+ */
WDTplus_graceInit();
LCD_init();
LCD_clear_home();
LCD_goto(3, 0);
LCD_putstr(txt1);
LCD_goto(3, 1);
LCD_putstr(txt2);
delay_ms(2600);
LCD_clear_home();
for(s = 0; s < 12; s++)
{
LCD_goto((2 + s), 0);
LCD_putchar(txt3[s]);
delay_ms(60);
}
for(s = 0; s < 10; s++)
{
LCD_goto((3 + s), 1);
LCD_putchar(txt4[s]);
delay_ms(60);
}
delay_ms(2600);
s = 0;