diff --git a/IOT/include/Program.h b/IOT/include/Program.h new file mode 100644 index 0000000..53a6189 --- /dev/null +++ b/IOT/include/Program.h @@ -0,0 +1,21 @@ +#ifndef PROGRAM_H +#define PROGRAM_H + +class Program{ +public: + /** + * @brief Construct the maine Program object + * + */ + Program(); + + /** + * @brief main loop function + * + */ + void loop(); + +private: + /* data */ +}; +#endif \ No newline at end of file diff --git a/IOT/src/Program.cpp b/IOT/src/Program.cpp new file mode 100644 index 0000000..952be1b --- /dev/null +++ b/IOT/src/Program.cpp @@ -0,0 +1,10 @@ +#include "Program.h" + + +Program::Program(){ + +} + +void Program::loop(){ + +} \ No newline at end of file diff --git a/IOT/src/main.cpp b/IOT/src/main.cpp index 58b344c..cff0213 100644 --- a/IOT/src/main.cpp +++ b/IOT/src/main.cpp @@ -1,9 +1,12 @@ #include +#include "Program.h" + +Program* program; void setup() { - // put your setup code here, to run once: + program = new Program(); } void loop() { - // put your main code here, to run repeatedly: + program->loop(); } \ No newline at end of file