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:
- 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