root: add rest of sensors as static project. Modbus: debug additions

This commit is contained in:
Evgenii Meshcheriakov
2022-10-22 10:11:01 +03:00
parent 0be8c9a3f0
commit 06a7d997d6
13 changed files with 770 additions and 1 deletions

27
HMP60Sensor/inc/HMP60.h Normal file
View File

@@ -0,0 +1,27 @@
/*
* HMP60.h
*
* Created on: 20 Oct 2022
* Author: evgenymeshcheryakov
*/
#ifndef HMP60_H_
#define HMP60_H_
#include "ModbusMaster.h"
#include "ModbusRegister.h"
class HMP60 {
public:
HMP60();
int readRH();
int readT();
virtual ~HMP60();
private:
ModbusMaster sens;
ModbusRegister regRHint;
ModbusRegister regRHfloat;
ModbusRegister regTint;
};
#endif /* HMP60_H_ */