BayEOSArduino Library
SDP600.h
1 #ifndef __SDP600_H__
2 #define __SDP600_H__
3 
4 #include "Arduino.h"
5 #include <Wire.h>
6 
7 #define SDP600_I2C_ADDR 64
8 
9 class SDP600 {
10 public:
11  void begin(int scaleFactor=1200);
12  float read(void);
13  void setResolution(uint8_t res=12);
14  void reset(void);
15 private:
16  void calcCRC(uint8_t value, uint8_t *crc);
17  int _scaleFactor; //Depends on type - 60 for 500Pa, 240 for 125Pa, 1200 for 25Pa
18 };
19 
20 
21 #define SDP800_I2C_ADDR 0x25
22 
23 class SDP800 {
24 public:
25  void begin();
26  void scaleFactor();
27  float read(void);
28 private:
29  void calcCRC(uint8_t value, uint8_t *crc);
30  int _scaleFactor; //Will be autodetected by begin
31 };
32 
33 
34 #endif
Definition: SDP600.h:9
Definition: SDP600.h:23