📄 test3.c
字号:
#include <reg52.H>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
//uchar code show_t[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
//uchar code show_t1[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xF8,0x80,0x90};
//uchar code tab1[]={0x02,0x9e,0x24,0x0c,0x98,0x48,0x40,0x1e,0x00,0x18,0x10,0xc0,0x62,0x84,0x60,0x70}; //带小数点的
//uchar code tab2[]={0x03,0x9f,0x25,0x0d,0x99,0x49,0x41,0x1f,0x01,0x19,0x11,0xc1,0x63,0x85,0x61,0x71}; //不带小数点的
void delay( uint z ) //延时程序,延时准确为1MS;
{
uint x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--) ;
}
void main()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -