Skip to content

titan098/TaskRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

TaskRunner

TaskRunner is a library for a Arduino Sketches which can will execute tasks in a cooperative environment. This can be useful for esp8266 and similar platforms.

Simple Example

The following simple example will execute the task_to_execute function every 1000 milliseconds.

#include <Arduino.h>
#include <TaskRunner.h>

TaskRunner tasks;

void task_to_execute() {
    Serial.println("A am a task");
}

void setup() {
    Serial.begin(115200);

    tasks.add([]() {task_to_execute; }, 1000);
}

void loop() {
    tasks.execute();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages