intermediate

This commit is contained in:
Jm 2021-01-05 23:32:33 -08:00
parent f7dcef39ce
commit 0af5b225c4
2 changed files with 34 additions and 0 deletions

14
src/JMTest.cpp Normal file
View File

@ -0,0 +1,14 @@
#include "JMTest.h"
#include <Arduino.h>
JMTest jMTest;
JMTest::JMTest() : concurrency::OSThread("JMTest") {}
int32_t JMTest::runOnce()
{
DEBUG_MSG("JMTest::runOnce()\n");
return (1000);
}

20
src/JMTest.h Normal file
View File

@ -0,0 +1,20 @@
#pragma once
#include "concurrency/OSThread.h"
#include "configuration.h"
#include <Arduino.h>
#include <functional>
class JMTest : private concurrency::OSThread
{
public:
JMTest();
protected:
virtual int32_t runOnce();
};
extern JMTest jMTest;