51单片机1302时钟
#include
#include
#define uint unsigned int
#define uchar unsigned char
uchar code table[]="shidu:"; //把你要显示的东西写成数组
uchar code table1[]="wendu:";
sbit out = P1^0;
uchar a,miao,shi,fen,ri,yue,nian,week,temp;
sbit SCLK=P2^1; // 6 P1.1
sbit IO=P2^0; // 7 P1.0
sbit RST=P2^4; //时钟 5 P1.2
sbit ACC0=ACC^0;
sbit ACC7=ACC^7;
sbit shinen=P2^7; //使能
sbit RS=P2^6; //数据命令选择端
sbit RW=
51单片机1302时钟最先出现在Python成神之路。
共有 0 条评论