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 Nucleo_printf1 by
Diff: main.cpp
- Revision:
- 1:d4d2ab411f7e
- Parent:
- 0:9522c4dc43b8
--- a/main.cpp Fri Nov 03 09:16:32 2017 +0000
+++ b/main.cpp Mon Nov 06 06:50:52 2017 +0000
@@ -11,13 +11,14 @@
int main()
{
- int data;
+ sensor.format(8,Serial::None,1);
while(1)
{
- serial.printf("test 1\n");
BME280.receive();
- serial.printf("test 2\n");
- data= BME280.datareadfuiction(0);
- serial.printf("first data : %d\n",data);
+ serial.printf("data 1 : %d\n",BME280.datareadfuiction(0));
+ serial.printf("data 2 : %d\n",BME280.datareadfuiction(1));
+ serial.printf("data 3 : %d\n",BME280.datareadfuiction(2));
+ serial.printf("data 4 : %d\n",BME280.datareadfuiction(3));
+ serial.printf("data 5 : %d\n",BME280.datareadfuiction(4));
}
}
