-
Notifications
You must be signed in to change notification settings - Fork 42
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
Is it possible to call a function with arguments? #4
Comments
For now there is no support for callback parameters. |
If std library can be used it would be possible. |
Example: t.add(0, 1000, [&](int*arg) { Serial.println((int)*arg); }, &arg);
Thanks for this really neat & useful library, one thing though I noticed it has a little typo that causes a compile time error. missing * on the param part. |
Example: t.add(0, 1000, [&](int*arg) { Serial.println((int)*arg); }, &arg);
…)" This reverts commit 2fc25d8.
In other words, must the callback function
f
be of the formf(void)
or can it have arguments?Many thanks for your help, neat library!
The text was updated successfully, but these errors were encountered: