按钮驱动
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* button.h
|
||||
*
|
||||
* Created on: Sep 18, 2021
|
||||
* Author: wuwenfeng
|
||||
*/
|
||||
|
||||
#ifndef BUTTON_H_
|
||||
#define BUTTON_H_
|
||||
|
||||
#include "main.h"
|
||||
|
||||
struct button
|
||||
{
|
||||
uint16_t code;
|
||||
uint8_t lock;
|
||||
uint32_t time;
|
||||
uint16_t times;
|
||||
};
|
||||
|
||||
void GEI_BUTTON_CODE(struct button *bt,uint8_t in);
|
||||
|
||||
#endif /* BUTTON_H_ */
|
||||
Reference in New Issue
Block a user