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.
Dependencies: HP206C mbed HMC5883L DHT DS1820
Diff: main.cpp
- Revision:
- 64:7adaa9dfcb8c
- Parent:
- 62:d902b1e77094
- Child:
- 65:3f898ad77cb5
- Child:
- 68:26938422fa0c
diff -r 769a0a65f5c7 -r 7adaa9dfcb8c main.cpp
--- a/main.cpp Tue Oct 09 12:29:13 2018 +0000
+++ b/main.cpp Tue Oct 09 12:32:59 2018 +0000
@@ -9,7 +9,7 @@
Serial wisol(SERIAL_PORT);
Serial pc(USBTX, USBRX);
DHT sensor(PIN_NAME, DHTtype);
-HP20x_dev hp206c(HP20X_I2C_PORT);
+//HP20x_dev hp206c(HP20X_I2C_PORT);
HMC5883L hmc5883(HMC5883_I2C_PORT);
int main() {
@@ -35,9 +35,9 @@
*/
//collect data
- alt = readAltitude(&hp206c);
+ //alt = readAltitude(&hp206c);
hmc5883.getXYZ(magXYZ);
- get_T_H_air(&airT, &airH, sensor)
+ get_T_H_air(&airT, &airH, sensor);
// Display
pc.printf("\n=====| Data |=====\n");
