Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple push patterns #101

Open
mclever opened this issue Sep 6, 2022 · 1 comment
Open

Multiple push patterns #101

mclever opened this issue Sep 6, 2022 · 1 comment

Comments

@mclever
Copy link

mclever commented Sep 6, 2022

Is there a way to send two different on and off push sequences?

For example I have a button that when pushed 3 times it means on, 2 times means auto and then the off command is either 2 or 3 pushes depending on what the first on sequence was.

Thanks

@devWaves
Copy link
Owner

devWaves commented Sep 8, 2022

I think the latest bot firmware supports 3 modes. I haven't tried the new 'custom' mode yet though or how it interact with my code

modes : switch, press, custom

if you set the mode to custom you can define a number of pushes for on and a number of pushes for off.... I think

If you want to try that out and let me know if the esp32 shows a bot with setting 'custom' if it shows as press mode or switch mode from the esp32. If it shows as 'switch', then it should just work I think. If it shows as 'press' then I'll need to make a minor change in the esp32 code do that custom and switch are both seen as switch

I think that would be the easiest way to support it and would save more battery. only one command would be sent to the bot instead of multiple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants