9 Commits

Author SHA1 Message Date
MurphyZhao
e8aa043bd5 [fix] 修复 flex_button_register 返回值类型为 int32_t,当出现错误的时候返回 -1
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2020-02-21 17:02:53 +08:00
wangzhengdong
ec7828412d [fix]
1. fix error return type in flex_button_register

[update]
1. add return type of flex_button_process.
2. add return type of flex_button_scan.
   In low power system,the button task can get the return value when call flex_button_scan.Task stop polling when return 0,otherwise go on polling.In this case,the interrupt of button should be enabled,mcu will be waked up when get interrupt,and polling will restart.

Signed-off-by: wzd5230 <772461552@qq.com>
2020-02-19 12:53:59 +08:00
zhaojuntao
5356ee8cc5 [fix] 修复 combos 单次的歧义,愿意是想用作连击,但与组合歧义,因此替换为 multiple click
Signed-off-by: zhaojuntao <d2014zjt@163.com>
2019-12-27 15:13:23 +08:00
zhaojuntao
292c8adab5 [update] 移除宏定义代码块中多余的分号
[update] README.md 中增加资源占用统计

Signed-off-by: zhaojuntao <d2014zjt@163.com>
2019-12-27 14:20:10 +08:00
zhaojuntao
d19ecb024c [update] 重构代码,实现连击功能
- 实现无限连击功能
- 简化示例程序,增加组合按键演示
- 整理代码
- 按键结构体增加 id 属性,用于唯一区分按键
- 按键结构体增加 max_combos_click_solt 属性,用于处理连击

Signed-off-by: zhaojuntao <d2014zjt@163.com>
2019-12-26 17:58:19 +08:00
MurphyZhao
eb583426a9 [update] 更新使用说明;更新仓库地址
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-08-02 11:02:28 +08:00
libing
40107f5252 fix bug 2019-04-24 20:01:57 +08:00
Murphy
06f5c7cb6f [bug][flexible_button] fix flex_button_register api logical error
Signed-off-by: Murphy <d2014zjt@163.com>
2019-03-21 22:01:08 +08:00
MurphyZhao
af57f8e761 [ADD] Add flexible button library
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-10-11 16:41:21 +08:00