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.
Dependents: TestBenchSerenity-proto_F429ZI TestBenchFlow HSPFLOW1 TestBenchFlow1 ... more
Diff: keller_pressure.cpp
- Revision:
- 6:deb4008b136e
- Parent:
- 5:3ac90d95062a
- Child:
- 7:6bca43eedca6
--- a/keller_pressure.cpp Wed Sep 13 18:33:00 2017 +0000 +++ b/keller_pressure.cpp Wed Feb 28 15:28:03 2018 +0000 @@ -1,3 +1,14 @@ +///----------------------------------------------------------------- +/// Description: Read from Keller-Druck I2C pressure sensor +/// Author: David Wahl +/// Date: 28-FEB-2018 +/// Notes: Initial release +/// +/// Revision History: +/// Name: Date: Description: +///----------------------------------------------------------------- + + // Sample code /* #include <mbed.h> @@ -15,12 +26,12 @@ }; }; //I2CPreInit gI2C1(I2C_SDA, I2C_SCL, I2C frequency); -I2CPreInit i2c(PB_9, PB_8, 400000); +I2CPreInit i2c(PB_9, PB_8, 100000); KELLER_PRESSURE pumpP(i2c, 0x40); int main() { - pc.baud(250000); + pc.baud(115200); pc.printf("Starting up...\n\r"); if (pumpP.isAvailable()) { pc.printf("ACK\r\n");