Threading

Thread functions - Threading

While we do not recommend blocking the loop() thread from returning, worker thread functions require a loop to function properly.

void MyClass7::threadFunction() {
    while(true) {
        // put your code here
        delay(1);
    }
}