feat:init IOT project #6

Merged
Clement merged 3 commits from feat/init-IOT into master 2023-03-07 13:19:18 +00:00
3 changed files with 36 additions and 2 deletions
Showing only changes of commit 2c76f567b3 - Show all commits

21
IOT/include/Program.h Normal file
View File

@ -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

10
IOT/src/Program.cpp Normal file
View File

@ -0,0 +1,10 @@
#include "Program.h"
Program::Program(){
}
void Program::loop(){
}

View File

@ -1,9 +1,12 @@
#include <Arduino.h> #include <Arduino.h>
#include "Program.h"
Program* program;
void setup() { void setup() {
// put your setup code here, to run once: program = new Program();
} }
void loop() { void loop() {
// put your main code here, to run repeatedly: program->loop();
} }