-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Implementation of Functional and Scheduled option in Ticker lib #5030
Conversation
https://travis-ci.org/esp8266/Arduino/jobs/415077264 CI failure is related to style on the example code. We check for Arduino formatting to try and get a consistent look to the code. Intent of 2, braces on the function definition line, etc. The link above shows the problem bits. |
@earlephilhower Will update the example. |
Updated the example. |
Hi, From your example, you declare the 2 functions:
And in the setup:
Links or comments in code could be useful to understand. However thanks for your work, it seems a needed and important improvement. |
Indeed, the only difference in the code is the Although the behavior of the both options is different of course. I made the code this identical in order to keep the focus on the "schedule functionality" |
That's perfectly fine, but I would understand what are this "schedule functionality" :) I mean, I've just learnt that in esp8266 exists schedule.h. Now I'm wondering what are the differences between "scheduling" a function instead the simple ticker.attach(..) Any links or suggestion is appreciated |
The non scheduled form executes asynchronously in the system context. The code that can execute there has certain restrictions, e.g. you can't yield(). |
Clear explanation, thank you very much! I'm searching on readthedocs... Is already there a page documenting this? |
No description provided.