PressureWrapper init

This commit is contained in:
Evgenii Meshcheriakov
2022-10-10 14:26:59 +03:00
parent 2dd4d78bc2
commit 8282b23235
7 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/*
* PressureWrapper.h
*
* Created on: 5 Oct 2022
* Author: evgenymeshcheryakov
*/
#ifndef PRESSUREWRAPPER_H_
#define PRESSUREWRAPPER_H_
#include "DigitalIoPin.h"
#include "I2C.h"
#define ADDRESS 0x40
#define READADD 0x81
#define WRITEADD 0x80
class PressureWrapper
{
public:
PressureWrapper();
bool getStatus();
int16_t getPressure();
virtual ~PressureWrapper();
private:
I2C *i2c;
};
#endif /* PRESSUREWRAPPER_H_ */