Josef Humer
/
BuNuc_BME280_C02
Hello program for BME280 library
Revision 4:07413c4d0b80, committed 2020-01-08
- Comitter:
- heseg
- Date:
- Wed Jan 08 16:05:58 2020 +0000
- Parent:
- 3:710f0b2843e4
- Commit message:
- NUCLEO-F303K8, BME280, Hello, simple
Changed in this revision
diff -r 710f0b2843e4 -r 07413c4d0b80 BME280.lib --- a/BME280.lib Fri Jun 26 06:42:06 2015 +0000 +++ b/BME280.lib Wed Jan 08 16:05:58 2020 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/MACRUM/code/BME280/#ddcaa259e65b +http://developer.mbed.org/users/MACRUM/code/BME280/#c1f1647004c4
diff -r 710f0b2843e4 -r 07413c4d0b80 main.cpp --- a/main.cpp Fri Jun 26 06:42:06 2015 +0000 +++ b/main.cpp Wed Jan 08 16:05:58 2020 +0000 @@ -1,17 +1,19 @@ +/* ********************************************************** */ +/* *************** Projekt: BuNuc_BME280_C02 **************** */ +/* BULME Graz, Abteilung Elektronik und Technische Informatik */ +/* ********************************************************** */ #include "mbed.h" #include "BME280.h" Serial pc(USBTX, USBRX); -#if defined(TARGET_LPC1768) -BME280 sensor(p28, p27); -#else BME280 sensor(I2C_SDA, I2C_SCL); -#endif -int main() { +int main() +{ - while(1) { + while(1) + { pc.printf("%2.2f degC, %04.2f hPa, %2.2f %%\n", sensor.getTemperature(), sensor.getPressure(), sensor.getHumidity()); wait(1); }
diff -r 710f0b2843e4 -r 07413c4d0b80 mbed.bld --- a/mbed.bld Fri Jun 26 06:42:06 2015 +0000 +++ b/mbed.bld Wed Jan 08 16:05:58 2020 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file