main.h

来自「This is the latest VS1053B chip interfac」· C头文件 代码 · 共 21 行

H
21
字号
//Main Header file
#ifndef _MAIN_INCLUDED_
#define _MAIN_INCLUDED_

#define VOL_UP              PINA.4
#define VOL_DN              PINA.6
#define NEXT_F              PIND.0
#define PREV_F              PINB.4
#define PLAY_B              PINA.2
#define STOP_B              PINE.7
#define ON_OFF              PIND.4
#define NEXT_B              PINE.6
#define PREV_B              PINA.3
#define CARD_P              PINE & (1 << 2)
#define POWER_B             PIND & (1 << 4)

#define POWERON()  PORTD |= (1 << 7)  //PORTD.7
#define POWEROFF()   PORTD &= ~(1 << 7) //PORTD.7

#endif

⌨️ 快捷键说明

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