26 Commits

Author SHA1 Message Date
Murphy
05405a51c2
Merge pull request #19 from HappyFacade/patch-1
Add missing syntax highlighting to readme
2020-04-12 17:34:21 +08:00
Happy
672dd3d213
Add missing syntax highlighting to readme 2020-04-07 09:08:45 -07:00
Murphy
d9949397a6
Merge pull request #18 from wzd5230/master
[fix] 修复按键注册顺序与事件顺序不匹配的问题
2020-03-30 18:43:34 +08:00
wangzhengdong
fb0558be7a [fix]
1. When more than 1 button registered.For example 5 buttons.The lastest button will received 1 click event when I click the first button.

[update]
1.

Signed-off-by: wzd5230 <772461552@qq.com>
2020-03-30 13:36:51 +08:00
Murphy
5489f152eb
Merge pull request #17 from murphyzhao/fix-return-type
[fix] 修复 flex_button_register 返回值类型为 int32_t,当出现错误的时候返回 -1
2020-02-21 17:05:18 +08:00
MurphyZhao
e8aa043bd5 [fix] 修复 flex_button_register 返回值类型为 int32_t,当出现错误的时候返回 -1
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2020-02-21 17:02:53 +08:00
Murphy
daad93449c
Merge pull request #16 from wzd5230/master
[fix]flex_button_scan增加返回值,使得低功耗实现变得方便
2020-02-19 20:27:52 +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
MurphyZhao
0e2eb6abd5 [fix] fix grammar bug, and fix tencent evb mx+ key mismatch problem
[update] change dirs and add examples directory

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2.0.1
2020-02-15 09:05:26 +08:00
MurphyZhao
fb041f30f3 [add] 增加 TencentOS tiny EVB_MX 板子示例程序
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2020-01-20 12:07:36 +08:00
zhaojuntao
5356ee8cc5 [fix] 修复 combos 单次的歧义,愿意是想用作连击,但与组合歧义,因此替换为 multiple click
Signed-off-by: zhaojuntao <d2014zjt@163.com>
2.0.0
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
Murphy
7b996ae55b
Create FUNDING.yml 2019-12-11 11:01:09 +08:00
Murphy
562ecf686c
Merge pull request #12 from liuduanfei/master
Update flexible_button_demo.c , change pin mode
2019-11-18 08:45:52 +08:00
HappyTime
d7a094ada9
Update flexible_button_demo.c 2019-11-15 10:23:03 +08:00
Murphy
5218c705ee
Update LICENSE 2019-08-12 14:21:29 +08:00
MurphyZhao
0d3f3d1f73 [update] SConscript for rt-thread packages
Signed-off-by: MurphyZhao <d2014zjt@163.com>
1.0.0
2019-08-05 11:18:15 +08:00
MurphyZhao
0fcce0be5b [update] 更新 README.md
增加友情链接

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-08-02 11:23:04 +08:00
MurphyZhao
eb583426a9 [update] 更新使用说明;更新仓库地址
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-08-02 11:02:28 +08:00
MurphyZhao
6d810210b3
Merge pull request #6 from BOBBOM/master
fix bug
2019-04-26 09:03:00 +08:00
libing
40107f5252 fix bug 2019-04-24 20:01:57 +08:00
MurphyZhao
91cd3c9485
Merge pull request #4 from zhaojuntao/fix-flex_button_register
[bug][flexible_button] fix `flex_button_register` api logical error
2019-03-21 22:02:59 +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
5c3e7d216a 【更新】README.md
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-10-23 15:50:05 +08:00
MurphyZhao
af57f8e761 [ADD] Add flexible button library
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-10-11 16:41:21 +08:00