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

📄 general.h

📁 建立在AVR基础上的测试LED数码管电压表
💻 H
字号:
/******************************************************************************
*	Compiler:	WinAVR(GCC)
*	Device:		ATtiny13
*	File name:	general.h
*	description:	Main headfile

*	Programmer:	Liansen.Wang
*	Revision:		1.0
*	Modtime:		2005-08-22

*******************************************************************************/
#ifndef	GENERAL_H
#define GENERAL_H

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include <avr/pgmspace.h>

#include "DisplayAndKey.h"
#include "IR.h"

/*============================================================
PORTB port function settings

============================================================*/
//SPI Interface ports-settings
#define STB 		PB0
#define DATA		PB1
#define SCK		PB2
//Remote Control port settings
#define IR		PB3
//Other Ports settings
#define LED		PB4
#define RESET	PB5


#define TRUE 1
#define FALSE 0


#endif

⌨️ 快捷键说明

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