使用了library里面的emptyproject,添加了代码,交替闪烁两个LED代码如下。#include "driverlib.h"//******************************************************************************//!//!Empty Project that includes driverlib//!//****...
#includeunsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00};void delay(unsigned int n){unsigned int i,j;for(i=n;i>0;i--)for(j=30;j>0;j--);}void main(){while(1){delay...