36 lines
482 B
C++
36 lines
482 B
C++
#ifdef NODE_FERMENTER
|
|
|
|
#include <patrix/Patrix.h>
|
|
|
|
#include "config.h"
|
|
#include "display.h"
|
|
#include "http.h"
|
|
#include "pid.h"
|
|
#include "Program.h"
|
|
#include "rotary.h"
|
|
|
|
void patrixSetup() {
|
|
config.read();
|
|
|
|
ds18b20.setup();
|
|
heater.setup();
|
|
rotary.setup();
|
|
|
|
pidSetup();
|
|
httpSetup2();
|
|
}
|
|
|
|
void patrixLoop(const boolean mqttJustConnected) {
|
|
config.loop();
|
|
|
|
ds18b20.loop();
|
|
temperature.loop();
|
|
pidLoop();
|
|
rotary.loop();
|
|
program.loop();
|
|
|
|
displayLoop();
|
|
}
|
|
|
|
#endif
|