mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
31 lines
619 B
C
31 lines
619 B
C
#ifndef __KEY_H
|
||
#define __KEY_H
|
||
#include "common.h"
|
||
|
||
//////////////////////////////////////////////////////////////////////////////////
|
||
|
||
//<2F><><EFBFBD><EFBFBD>IO<49>˿ڶ<CBBF><DAB6><EFBFBD>
|
||
#define KEY0 PFin(9)
|
||
#define KEY1 PFin(8)
|
||
#define KEY2 PFin(7)
|
||
#define KEY3 PFin(6)
|
||
|
||
|
||
//<2F><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||
#define KEY0_DATA 1
|
||
#define KEY1_DATA 2
|
||
#define KEY2_DATA 3
|
||
#define KEY3_DATA 4
|
||
|
||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
extern u8 keydown_data; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>º<EFBFBD><C2BA>ͷ<EFBFBD><CDB7>ص<EFBFBD>ֵ
|
||
extern u8 keyup_data; //<2F><><EFBFBD><EFBFBD>̧<EFBFBD><EFBFBD>ֵ
|
||
extern u16 key_time;
|
||
extern u8 key_tem;
|
||
|
||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
void KEY_Init(void); //IO<49><4F>ʼ<EFBFBD><CABC>
|
||
void key_scan(u8 mode); //<2F><><EFBFBD><EFBFBD>ɨ<EFBFBD>躯<EFBFBD><E8BAAF>
|
||
|
||
#endif
|