diff --git a/src/app/tasks.cpp b/src/app/tasks.cpp new file mode 100644 index 0000000..f75d726 --- /dev/null +++ b/src/app/tasks.cpp @@ -0,0 +1,20 @@ +#include "tasks.h" + +boolean task1(void *pData) +{ + Serial.println("Hi, i am the task one"); + + return true; +} + +boolean task2(void *pData) +{ + Serial.println("Hi, i am the task two"); + + return true; +} +boolean task_blink(void *pData) +{ + SAB *p = (SAB *) pData; + p->getIoManager().getPcf().togglePin(PCF8574::P2); +} diff --git a/src/app/tasks.h b/src/app/tasks.h new file mode 100644 index 0000000..e965885 --- /dev/null +++ b/src/app/tasks.h @@ -0,0 +1,10 @@ +#ifndef TASKS_H +#define TASKS_H +#include +#include "SAB.h" + +boolean task1(void *); +boolean task2(void *); +boolean task_blink(void *); + +#endif //TASKS_H