use template

This commit is contained in:
2023-08-04 19:34:51 +02:00
parent 58fa315338
commit 83d8b2cba5
18 changed files with 379 additions and 20 deletions

View File

@ -1,18 +1,11 @@
#include <Arduino.h>
#include "Program.h"
// put function declarations here:
int myFunction(int, int);
Program* program;
void setup() {
// put your setup code here, to run once:
int result = myFunction(2, 3);
program = new Program();
}
void loop() {
// put your main code here, to run repeatedly:
program->loop();
}
// put function definitions here:
int myFunction(int x, int y) {
return x + y;
}