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.cpp
- Revision:
- 2:8689bf235745
- Parent:
- 1:7badb569b734
- Child:
- 3:f7beb1c93ba8
--- a/BAROMETER.cpp Mon Jun 29 01:39:07 2020 +0000 +++ b/BAROMETER.cpp Mon Jun 29 05:13:36 2020 +0000 @@ -1,7 +1,6 @@ #include "mbed.h" #include "BAROMETER.h" - BAROMETER::BAROMETER( PinName sda, PinName scl, adress ) : i2c(sda, scl), _addr(adress) { } @@ -11,7 +10,7 @@ } char BAROMETER::i2c_read(char regist) -{ +{ char cmd[2]; cmd[0]=regist; i2c.write(addr,cmd,1);