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

📄 sga.h

📁 AVR基本外设测试程序
💻 H
字号:
#include <iom8v.h>				//包含型号头文件
 #include <macros.h>			//包含"位"操作头文件
 #include <stdio.h>

 //========PD7输出高电平
 #define  LED_LIANG PORTD|=BIT(PD7)
 //========PD7输出低电平
 #define  LED_MIE   PORTD&=~BIT(PD7) 
 //========PD6输出高电平
 #define  BUZZ_YE   PORTD|=BIT(PD6)
 //========PD6输出低电平
 #define  BUZZ_NO   PORTD&=~BIT(PD6) 
 /*========液晶模拟驱动口定义========== */
 #define  HT_CS_ONE  PORTB|=BIT(PB3)
 #define  HT_CS_ZER  PORTB&=-BIT(PB3)
 #define  HT_WR_ONE  PORTB|=BIT(PB4)
 #define  HT_WR_ZER  PORTB&=-BIT(PB4)
 #define  HT_DT_ONE  PORTB|=BIT(PB5)
 #define  HT_DT_ZER  PORTB&=-BIT(PB5)
 
 #define  PC1_1  PORTC|= BIT(PC1)
 #define  PC1_0  PORTC&=-BIT(PC1)
 #define  PC2_1  PORTC|= BIT(PC2)
 #define  PC2_0  PORTC&=-BIT(PC2)
 #define  PC3_1  PORTC|= BIT(PC3)
 #define  PC3_0  PORTC&=-BIT(PC3)
 #define  PC4_1  PORTC|= BIT(PC4)
 #define  PC4_0  PORTC&=-BIT(PC4)
 #define  PC5_1  PORTC|= BIT(PC5)
 #define  PC5_0  PORTC&=-BIT(PC5)
 
 #define BEGIN	   	    1
 #define END	    	2
 #define ADD	    	3
 #define SUB	    	4
 #define SET    		5 
 /*全局变量定义*/ 
 
 extern unsigned char MBZ,VARIA_BIT,LCD[23],KKEY_n[14],KEY,
 				 	  CHW,BIT_80;
 extern unsigned int  TMS;

⌨️ 快捷键说明

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