端口自己修改一下用的1602液晶显示includereg52h>includeintrinsh>defineucharunsignedchardefineuintunsignedintsb
includereg52h>includeintrinsh>defineuintunsignedintdefineucharunsignedcharsfradc_contr=0xbc;ad
includereg52h>defineucharunsignedchardefineuintunsignedintuchartemp,num,bai,shi,ge;ucharkey[]={0x
通过芯片AT24C02控制P1口。程序:includereg52h>sbitsda=P2^1;sbitscl=P2^0;voiddelay1(){;;;}voiddelay(){intx,y;f
includereg52h>includeintrinsh>defineINT8UunsignedchardefineINT16UunsignedintdefineWRITE_BURST0
代码:includereg52h>typedefunsignedcharuint8;typedefunsignedintuint16;sbitacon=P1^0;上8位地址线sbitbcon=P