⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 模数转换器AD2543驱动
💻 C
字号:
#include<reg51.h>
void init_pins(void);
void m_delay(int time);
void init_2543(void);
unsigned int read_2543(unsigned char command);
void PutIntXY_LCD(unsigned char x, unsigned char y, unsigned Num);
void Init_LCD(void);
void PutStr_LCD(unsigned char *str)	;
void main(void)
{	
	unsigned int dat=0x0000;
	 Init_LCD();
	PutStr_LCD("fight");
 
	init_2543();

	while(1){
	dat=read_2543(0x00);
	Init_LCD();
	PutIntXY_LCD(0,1,dat);
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -