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: CheckRTC LPS25H hts221
Fork of ELEC350-extended-referral2 by
Revision 33:cffe0ae69aa6, committed 2017-03-29
- Comitter:
- martinsimpson
- Date:
- Wed Mar 29 11:34:00 2017 +0000
- Parent:
- 32:260a288be58f
- Child:
- 34:62aae7d507e2
- Commit message:
- New library added for hts221
Changed in this revision
--- a/LPS25H.lib Mon Mar 27 09:35:05 2017 +0000 +++ b/LPS25H.lib Wed Mar 29 11:34:00 2017 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/users/kenjiArai/code/LPS25H/#8fc511bd51af +https://developer.mbed.org/users/martinsimpson/code/LPS25H/#54e65e221cae
--- a/hts221.lib Mon Mar 27 09:35:05 2017 +0000 +++ b/hts221.lib Wed Mar 29 11:34:00 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Delta/code/hts221/#d255cebab3f5 +http://developer.mbed.org/teams/Nimbelink/code/hts221/#6d7166d49741
--- a/main.cpp Mon Mar 27 09:35:05 2017 +0000
+++ b/main.cpp Wed Mar 29 11:34:00 2017 +0000
@@ -14,13 +14,13 @@
uint32_t seconds = 0, minutes=0, hours=0;
LPS25H barometer(i2c2, LPS25H_V_CHIP_ADDR);
-
+HTS221 humidity(I2C_SDA, I2C_SCL);
int main()
{
- hts221_init();
- HTS221_Calib();
+ humidity.init();
+ humidity.calib();
printf("SOFT253 simple Temperature Humidity and Pressure Sensor Monitor\n\r");
printf("Using the X-NUCLEO-IKS01A1 shield and MBED Libraries\n\r");
//printf("%#x\n\r",barometer.read_id());
@@ -34,7 +34,7 @@
printf("Using the X-NUCLEO-IKS01A1 shield and MBED Libraries\n\r");
}
if(cmd=='A'){
- HTS221_ReadTempHumi(&tempCelsius, &humi);
+ humidity.ReadTempHumi(&tempCelsius, &humi);
printf("%4.2fC %3.1f%%", tempCelsius, humi);
barometer.get();
printf(" %6.1f %4.1f\r\n", barometer.pressure(), barometer.temperature());
