为什么无法正常显示呢?
#include "stm32f10x.h"
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "led.h"
#include "key.h"
unsigned wuhao[]={
0xFF,0x7B,0xFF,0x7B,0x7F,0xBB,0x61,0xBB,0x6D,0xDB,0x6D,0xEB,0x6D,0xF3,0x6D,0xF8,
0x6D,0xF3,0x6D,0xEB,0x6D,0xDB,0x61,0xBB,0x7F,0xBB,0xFF,0x7B,0xFF,0x7B,0xFF,0xFF,/*"吴",0*/
};
void xs()
{
u8 i;
delay_ms(5);
for(i=0;i<16;i++)
{
GPIO_Write(GPIOB,wuhao[i]);
delay_ms(1);
}
}
int main(void)
{ LED_Init();
KEY_Init();
delay_init(); //初始化延时函数
while(KEY==0)
{
xs(); }
}
|