1.3.5: add more examples&fix bugs

This commit is contained in:
fsender
2024-03-04 13:48:01 +08:00
parent d88f1a3c5c
commit 8e825c862a
26 changed files with 8329 additions and 89 deletions

View File

@@ -6,8 +6,9 @@
*
* @file ex03_buttons.ino
* @author FriendshipEnder (f_ender@163.com), Bilibili: FriendshipEnder
* @version 1.0
* @date 2023-10-20
* @version 1.1 增加了新的手势功能
*
* @date created: 2023-10-20 last modify: 2024-02-25
* @brief ReadGuy 按键功能演示. ReadGuy自带的按键驱动程序是非常好用的
* @attention
@@ -64,6 +65,11 @@ void loop(){
else if(c==2) guy.println("Left key long pressed!");
else if(c==3) guy.println("Right key clicked!");
break;
case 3:
if(c==1) guy.println("key triple clicked!");
else if(c==2) guy.println("Right clicked at left pressing!");
else if(c==3) guy.println("Centre key double clicked!");
break;
case 4:
if(c==1) guy.println("key long pressed!");
else if(c==2) guy.println("Right key clicked!");