Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BAROMETER.h
- 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; };