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

View File

@@ -0,0 +1,25 @@
/*
* GMP252.cpp
*
* Created on: 20 Oct 2022
* Author: evgenymeshcheryakov
*/
#include "GMP252.h"
GMP252::GMP252(): sens{240}, regInt{&sens, 0x0100}, regFloat{&sens, 0x0000}{
sens.begin(9600);
}
int GMP252:: read() {
int result = regInt.read();
return result;
}
GMP252::~GMP252() {
// TODO Auto-generated destructor stub
}