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

implement command queue for shift lights #13

Open
1 task
rickyelopez opened this issue Sep 1, 2020 · 0 comments
Open
1 task

implement command queue for shift lights #13

rickyelopez opened this issue Sep 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@rickyelopez
Copy link
Member

rickyelopez commented Sep 1, 2020

Usually, you want shift lights to blink at you when it's time to shift. There's not really an easy way to make the shift lights stay on for a specific amount of time without using delay() calls, which is unacceptable since it slows down the whole code.

  • Implement a "command queue" where commands to the shift lights can be pushed
    • each command in the queue should have a timestamp
    • a timeout should be defined
    • any command that has expired (i.e. threshold passed) should be ignored
    • if more then x commands in queue, clear queue so as not to get bogged down or laggy
@rickyelopez rickyelopez added the enhancement New feature or request label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant