//此程序只供参考////升国旗中还有万年历显示现在没有加进去////下次我把他加进去有不明白的加我QQ260912024或者直接发邮件给我//#include#defineucharunsignedchar//宏定义#defineuintunsignedint#definelcdbusP1sbitRS=P3^0;sbitRW=P3^1;sbitE=P3^2;//st7920字模取模方式为逐行式顺向去摸sbitkey1=P2^4;//升国旗sbitkey2=P2^5;//升半旗sbitkey3=P2^6;//降国旗sbi