We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be great to be able to add an optional void (*arg) argument to onRun and have that passed to your callback.
void (*arg)
(poorly written) example
void shutoff(void (*arg)) { uint8_t *pin = (uint8_t*)arg; digitalWrite(pin, LOW); } void setup() { Thread t1 = Thread(); t1.onRun(shutoff, 1); Thread t1 = Thread(); t1.onRun(shutoff, 2); }
This will dramatically simplify code by not requiring individual callbacks for each thread that perform the same function.
The text was updated successfully, but these errors were encountered:
#7 looks similar
Sorry, something went wrong.
Keeping this in #7
No branches or pull requests
It would be great to be able to add an optional
void (*arg)
argument to onRun and have that passed to your callback.(poorly written) example
This will dramatically simplify code by not requiring individual callbacks for each thread that perform the same function.
The text was updated successfully, but these errors were encountered: