Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phUnit phUnit1(&Serial1);
- phUnit phUnit2(&Serial2);
- #pragma once
- #ifndef UnitController_h
- #define UnitController_h
- class UnitController {
- private:
- PumpMotor *pumpA;
- PumpMotor *pumpB;
- phUnit _phUnit;
- int lastPassA = 0;
- int lastPassB = 0;
- int lastPassC = 0;
- bool running = false;
- String from_host = "";
- const int sec60 = 1000UL * 10;
- public:
- UnitController(PumpMotor *pumpA, PumpMotor *pumpB, phUnit _tassa);
- };
- #endif
- #pragma once
- #include "phUnit.h"
- #include "PumpMotor.h"
- #include "UnitController.h"
- UnitController::UnitController(PumpMotor *pumpA, PumpMotor *pumpB, phUnit tassa) {
- this->pumpA = pumpA;
- this->pumpB = pumpA;
- this->_phUnit = tassa;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement