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:
- 76:04941d128fff
- Parent:
- 73:bc3b0ee46dfc
- Child:
- 77:67faccef7f14
--- a/main.cpp Thu Oct 11 08:57:42 2018 +0000
+++ b/main.cpp Mon Oct 15 07:57:53 2018 +0000
@@ -51,12 +51,10 @@
pc.printf("T sol : %.2f C\r\n", solT);
pc.printf("T air : %.2f C\r\n", airT);
pc.printf("Mag : X:%d ; Y:%d ; Z:%d\n\r", magXYZ[0], magXYZ[1], magXYZ[2]);
- pc.printf("Pression : %ul Pa\r\n", P);
+ pc.printf("Pression : %u Pa\r\n", P);
+ pc.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
+ wisol.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
pc.printf("\n\r");
- for(int i=0; i<12 ; ++i)
- {
- pc.printf("%x ",msg[i]);
- }
- wait(2);
+ wait(WAIT_TIME - 7);
}
}
