SSLM1 / BAROMETER

Dependents:   class_practice

Revision:
1:7badb569b734
Child:
3:f7beb1c93ba8
diff -r 0f1293836634 -r 7badb569b734 BAROMETER.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BAROMETER.h	Mon Jun 29 01:39:07 2020 +0000
@@ -0,0 +1,21 @@
+#ifdef MBED_BAROMETER_H
+#define MBED_BAROMETER_H
+
+#include "mbed.h"
+
+class BAROMETER
+{
+public:
+    BAROMETER(PinName sda, PinName scl, adress = 0xB8);
+    ~BAROMETER();
+
+    char i2c_read(char regist);
+    void i2c_write(char regist,char data);
+    
+private:
+    I2c _i2c;
+    char _addr;
+
+};
+
+#endif
\ No newline at end of file