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.
main.cpp
00001 #include "lib_SHT25.h" 00002 00003 SHT25 sensor(I2C_SDA, I2C_SCL); 00004 00005 int main() 00006 { 00007 while(1) 00008 { 00009 sensor.waitSafeHeat(); 00010 float temperature = sensor.getTemperature(), humidity = sensor.getHumidity(); 00011 printf("\r\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); 00012 sensor.waitSafeHeat(); 00013 sensor.getData(&temperature, &humidity); 00014 printf("\r\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); 00015 } 00016 }
Generated on Wed Jul 20 2022 22:29:32 by
1.7.2