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.
Fork of BMP280 by
Revision 8:b60572e2ed05, committed 2016-09-24
- Comitter:
- Dot
- Date:
- Sat Sep 24 19:03:25 2016 +0000
- Parent:
- 7:c72b726c7dc9
- Commit message:
- Delivery Version
Changed in this revision
| BMP280.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BMP280.cpp Tue Apr 19 02:03:35 2016 +0000
+++ b/BMP280.cpp Sat Sep 24 19:03:25 2016 +0000
@@ -50,11 +50,16 @@
i2c.write(address, cmd, 2);
cmd[0] = 0xf4; // ctrl_meas
- cmd[1] = 0x27; // Temparature oversampling x1, Pressure oversampling x1, Normal mode
+ //cmd[1] = 0x27; // Temparature oversampling x1, Pressure oversampling x1, Normal mode
+ cmd[1] = 0x17; // Temparature off, Pressure oversampling x16, Normal mode
+ //Set to 00010111 = 0x27
i2c.write(address, cmd, 2);
cmd[0] = 0xf5; // config
- cmd[1] = 0xa0; // Standby 1000ms, Filter off
+ //cmd[1] = 0xa0; // Standby 1000ms, Filter off
+ cmd[1] = 0x00; // Standby 0.5ms, Filter off
+ //cmd[1] = 0x1C; // Standby 0.5ms, Filter on
+ //00011100
i2c.write(address, cmd, 2);
cmd[0] = 0x88; // read dig_T regs
