SSLM1 / BAROMETER

Dependents:   class_practice

Revision:
3:f7beb1c93ba8
Parent:
1:7badb569b734
--- a/BAROMETER.h	Mon Jun 29 05:13:36 2020 +0000
+++ b/BAROMETER.h	Mon Jun 29 06:50:06 2020 +0000
@@ -1,4 +1,4 @@
-#ifdef MBED_BAROMETER_H
+#ifndef MBED_BAROMETER_H
 #define MBED_BAROMETER_H
 
 #include "mbed.h"
@@ -6,14 +6,14 @@
 class BAROMETER
 {
 public:
-    BAROMETER(PinName sda, PinName scl, adress = 0xB8);
+    BAROMETER(PinName sda, PinName scl,  char adress = 0xB8);
     ~BAROMETER();
 
     char i2c_read(char regist);
     void i2c_write(char regist,char data);
     
 private:
-    I2c _i2c;
+    I2C i2c;
     char _addr;
 
 };