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
- Committer:
- hakim_belm
- Date:
- 2022-09-10
- Revision:
- 6:84b3ef333908
- Parent:
- 5:a28271106113
File content as of revision 6:84b3ef333908:
#include "mbed.h" #include "BME280.h" Serial pc(USBTX, USBRX); BME280 sensor(I2C_SDA, I2C_SCL,0x77); int main() { sensor.initialize(); while(1) { pc.printf("%2.1f degC %04.1f hPa %2.1f%%\r\n", sensor.getTemperature(), sensor.getPressure(), sensor.getHumidity()); wait(3); } }