蓝桥杯错误记录

小明 2025-05-03 10:28:31 8

今天在做 小蜜蜂index.php/tags-41973.html" class="superseo">���综合案例的时候,数码管显示,有重影。

()
#include 
unsigned char num;
unsigned char code Duan[22]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x80,
0xc6,0xc0,0x86,0x8e,0xbf,0x7f,0XC1,0X8C,0XC8,0xc3};
void shumadong();
void suocun(unsigned char n)
{
	switch(n)
	{
		case 4:P2 = (P2 & 0x1f)|0x80;break;
		case 5:P2 = (P2 & 0x1f)|0xa0;break;
		case 6:P2 = (P2 & 0x1f)|0xc0;break;
		case 7:P2 = (P2 & 0x1f)|0xe0;break;
	}
}
void shuma(unsigned char wei ,unsigned char shu)
{
	suocun(6);
	P0=0x01
The End
微信