为什么我的led灯不闪烁呢?求解 |
#include <msp430g2553.h> void delay() { unsigned int i; for(i=0;i<20000;i++); } void main(void) { WDTCTL = WDTPW + WDTHOLD; P1DIR |= 0X41; while(1) { P1OUT &= 0X00; P1OUT |= 0X41; delay(); P1OUT &= 0X00; P1OUT |= 0X40; delay(); P1OUT &= 0X00; P1OUT |= 0X01; delay(); P1OUT &= 0X00; P1OUT |= 0X00; delay(); } } 为什么我的led灯不闪烁呢?初学!LaunchPad开发板 |