The OP
Published on 2021-5-18 12:14
Only look at the author
This post is from 51mcu
Latest reply
You can set a threshold, for example, if the button is not released after one second,
It enters an infinite loop, and the acceleration function is executed in this infinite loop.
The condition for jumping out of this loop is to release the button.
If you press it briefly, it will not enter this cycle and will have no effect on your original functions.
Details
Published on 2021-5-19 09:01
| ||
|
||
This post is from 51mcu
Comments
Your point here is that you need to use two buttons to control more than two functions, right? You can consider long pressing the button to achieve fast and slow functions, such as long pressing the right button for fast, and long pressing the left button for slow, but it may be more laborious hahaha
Details
Published on 2021-5-19 09:01
Your point here is that you need to use two buttons to control more than two functions, right? You can consider long pressing the button to achieve fast and slow functions, such as long pressing the right button for fast, and long pressing the left button for slow, but it may be more laborious hahaha
Details
Published on 2021-5-19 08:56
| ||
|
||
|
This post is from 51mcu
| ||
|
||
|
4
Published on 2021-5-18 17:15
Only look at the author
This post is from 51mcu
| ||
|
||
|
This post is from 51mcu
| ||||||||||
|
||||||||||
|
6
Published on 2021-5-19 08:56
Only look at the author
This post is from 51mcu
| ||
|
||
|
7
Published on 2021-5-19 09:01
Only look at the author
This post is from 51mcu
| ||
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190