update introduce

This commit is contained in:
Jaup 2016-09-13 10:34:25 +00:00
parent 10e0ad6c7a
commit 1d8b53260d
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# MultiButton
## 简介
MultiButton 是一个小巧简单易用的事件驱动型按键驱动模块,可无限量扩展按键,按键事件的回调处理方式可以简化你的程序逻辑,去除冗余的按键处理硬编码,专注你的程序思路
MultiButton 是一个小巧简单易用的事件驱动型按键驱动模块,可无限量扩展按键,按键事件的回调处理方式可以简化你的程序结构,去除冗余的按键处理硬编码,让你的按键业务逻辑更清晰
## 使用方法
1.先申请一个按键结构
@ -9,7 +9,7 @@ MultiButton 是一个小巧简单易用的事件驱动型按键驱动模块,
```
struct Button button1;
```
2.初始化按键对象,**read_button_pin()** 为按键的GPIO读取函数,后一个参数设置触发电平
2.初始化按键对象,绑定按键的GPIO电平读取接口**read_button_pin()** ,后一个参数设置有效触发电平
```
button_init(&button1, read_button_pin, 0);

View File

@ -135,7 +135,6 @@ void button_handler(struct Button* handle)
handle->event = (uint8_t)NONE_PRESS;
}
}
break;
case 5: