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.
Fork of BME280_Hello by
main.cpp
00001 #include "mbed.h" 00002 #include "BME280.h" 00003 00004 Serial pc(USBTX, USBRX); 00005 00006 #if defined(TARGET_LPC1768) 00007 BME280 sensor(p28, p27); 00008 #else 00009 BME280 sensor(I2C_SDA, I2C_SCL); 00010 #endif 00011 00012 int main() { 00013 00014 while(1) { 00015 pc.printf("%2.2f degC, %04.2f hPa, %2.2f %%\n", sensor.getTemperature(), sensor.getPressure(), sensor.getHumidity()); 00016 wait(1); 00017 } 00018 }
Generated on Thu Jul 21 2022 06:46:06 by
1.7.2
