mirror of
https://github.com/MaJerle/lwbtn.git
synced 2026-02-06 04:23:14 +08:00
2.0 KiB
2.0 KiB
Changelog
Develop
v1.2.1
- Fix the bug with
LWBTN_CFG_TYPE_VARTYPEbeing wrongly named and replaced withLWBTN_CFG_TIME_VARTYPE
v1.2.0
- Add detection of the first button state to be inactive before debouncing can even start
- Add macro
LWBTN_CFG_USE_CLICKwith default value to keep click event enabled (backward compatibility) and an option to disable click events - Rework library CMake with removed INTERFACE type
- Add
LWBTN_CFG_TYPE_VARTYPEconfig type to allow user to select time variable type (typicallyuint32_toruint16_t) - Add
lwbtn_resetto manually reset the button state - Fix the platformio library package description
v1.1.0
- Add
lwbtn_keepalive_get_periodfunction - Add
lwbtn_keepalive_get_countfunction to get keepalive count - Add
lwbtn_click_get_countfunction to get consecutive clicks - Add
lwbtn_keepalive_get_count_for_timefunction to calculate number of required keep alive tick - Improve configuration documentation text
- Add
LWBTN_CFG_CLICK_CONSECUTIVE_KEEP_AFTER_SHORT_PRESSoption to report previous clicks, even if last sequence of onpress and onrelease is too short for valid click event.
v1.0.0
- Send
CLICKevent if there is an overlap between max time between clicks and new click arrives - Do not send
CLICKevent if there was previously detected long hold press (hold time exceeded max allowed click time)
v0.0.2
- Add
LWBTN_CFG_GET_STATE_MODEto control get state mode - Add option to check if button is currently active (after debounce period has elapsed)
- Add option to set time/click parameters at run time for each button specifically
- Rename
_RUNTIMEconfiguration with_DYNAMIC - Change
LWBTC_CFG_TIME_DEBOUNCEtoLWBTC_CFG_TIME_DEBOUNCE_PRESSandLWBTC_CFG_TIME_DEBOUNCE_RUNTIMEtoLWBTC_CFG_TIME_DEBOUNCE_PRESS_DYNAMICrespectively - Add option release debounce with
LWBTC_CFG_TIME_DEBOUNCE_RELEASEandLWBTC_CFG_TIME_DEBOUNCE_RELEASE_DYNAMICoptions
v0.0.1
- First commit