Hi all,
Im not an expert but you guys help me keep moving.. Here is my question,
I am using the TeensyThreads.h and i know how to call functions that have no arguments with thread.addthread... but now..
I want to call a function that takes two parameters, name and speed.
void Edge1(char *sketchName, float BPM)
I am calling it in threads.addThread(Edge1) which works when there are no parameters.
How do i do something like this:
threads.addThread(Edge1("Cylon", 120.5))
I am not getting the syntax right. Is it even possible ?
Thankyou !
Im not an expert but you guys help me keep moving.. Here is my question,
I am using the TeensyThreads.h and i know how to call functions that have no arguments with thread.addthread... but now..
I want to call a function that takes two parameters, name and speed.
void Edge1(char *sketchName, float BPM)
I am calling it in threads.addThread(Edge1) which works when there are no parameters.
How do i do something like this:
threads.addThread(Edge1("Cylon", 120.5))
I am not getting the syntax right. Is it even possible ?
Thankyou !