如题,我尝试点灯(P1.0)却死活不能奏效,哪位帮忙看一下程序,是写错了还是少配置了?
int main(void)
{
char i=0;
WDTCTL = WDTPW | WDTHOLD;
P1DIR =BIT0;
P1OUT =0x01;
P1REN=0x01;
// P1OUT |= BIT0;
P1SEL1=0;
P1SEL0=0;
while(1)
{
P1OUT ^= BIT0;
i=P1IN;
__delay_cycles(100000);
}
}
