fuckit: clean slate
This commit is contained in:
32
esp-vent-main/src/HMP60.cpp
Normal file
32
esp-vent-main/src/HMP60.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* HMP60.cpp
|
||||
*
|
||||
* Created on: 20 Oct 2022
|
||||
* Author: evgenymeshcheryakov
|
||||
*/
|
||||
|
||||
#include <HMP60.h>
|
||||
|
||||
HMP60::HMP60 ()
|
||||
: sens{ 241 }, regRHint{ &sens, 0x0100 }, regTint{ &sens, 0x0101 },
|
||||
regRHfloat{ &sens, 0x0000 }
|
||||
{
|
||||
sens.begin (9600);
|
||||
}
|
||||
|
||||
int
|
||||
HMP60::readRH ()
|
||||
{
|
||||
return (regRHint.read ()) / 10;
|
||||
}
|
||||
|
||||
int
|
||||
HMP60::readT ()
|
||||
{
|
||||
return (regTint.read ()) / 10;
|
||||
}
|
||||
|
||||
HMP60::~HMP60 ()
|
||||
{
|
||||
// TODO Auto-generated destructor stub
|
||||
}
|
||||
Reference in New Issue
Block a user