Skip to content

add timer.starta and timer.stopa to stop and start a systimer that calls a bitlash function #235

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacobrosenthal
Copy link
Contributor

Im actually not using built in reports because I dont need all that data or all those cycles
Im collapsing what I need into a command.report instead, but theres no way to schedule things from bitlash, so I made this and I think it might be handy.

timer.starta(10000,"power.report",1);
timer.stopa

went with letters instead of numbers to not confuse with timer0, timer1 etc on arduino

I actually kind of like this for the events system too. Then if you events.stop you actually get those 3 timers back too.

@jacobrosenthal
Copy link
Contributor Author

Could also see some timers, or even the events system as module

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

Successfully merging this pull request may close these issues.

1 participant