key.h

来自「Mp3 Player using ATmega128, VS1003B, Cha」· C头文件 代码 · 共 29 行

H
29
字号
#ifndef KEY_H
#define KEY_H

#include "../global.h"

#define Key_DDR		DDRF
#define Key_PORT	PORTF
#define Key_PIN		PINF

	#define Key_PLAY	(Key_PIN & 0x01)
	#define Key_REW		(Key_PIN & 0x02)
	#define Key_FF		(Key_PIN & 0x04)
	#define Key_VOLUP	(Key_PIN & 0x08)
	#define Key_VOLDOWN	(Key_PIN & 0x10)
	#define Key_ENTER	(Key_PIN & 0x20)
	#define Key_FUNC	(Key_PIN & 0x40)

/*
	#define Key_PLAY	0x01
	#define Key_REW		0x02
	#define Key_FF		0x04
	#define Key_VOLUP	0x08
	#define Key_VOLDOWN	0x10
	#define Key_ENTER	0x20
	#define Key_FUNC	0x40
*/

#endif

⌨️ 快捷键说明

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