Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bangle_setUI_Q3: Make custom btn edge configurable
`btn` can be set like before, so backwards compatible I think. But it can now also be an object on form {fn: ()={}, edge: "rising/falling/both"}. @gfwilliams has suggested another solution using callbacks in espruino/BangleApps#3452 (comment) The solution I opted for here for now follows the same coding style of how the `type`/`mode` parameter of setUI can be either a string or an object.
- Loading branch information