21 lines
349 B
Arduino
21 lines
349 B
Arduino
|
#define DEBUG_FLAG true
|
||
|
|
||
|
#include "programm.h"
|
||
|
ProgClass* p;
|
||
|
|
||
|
void setup() {
|
||
|
Serial.begin(9600);
|
||
|
p = new ProgClass(&Serial);
|
||
|
#if defined(DEBUG_FLAG) && DEBUG_FLAG
|
||
|
Serial.println("Init loading!");
|
||
|
#endif
|
||
|
p->loadFromDisplay();
|
||
|
#if defined(DEBUG_FLAG) && DEBUG_FLAG
|
||
|
Serial.println("Init finished!");
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
p->loop();
|
||
|
}
|