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.
Diff: main.cpp
- Revision:
- 1:3d4042d58038
- Parent:
- 0:7bea87fe7ce1
- Child:
- 2:76f6a32f9404
--- a/main.cpp Mon Dec 14 19:35:21 2020 +0000
+++ b/main.cpp Tue Dec 15 07:21:08 2020 +0000
@@ -221,7 +221,7 @@
pressure += 1.77f;
buf_count = 0;
bool push = false;
- for(int i=0;i<18;i++){
+ for(int i=0;i<8;i++){
bb = button;
if(!bb){
led_button = 1;
@@ -240,9 +240,10 @@
break;
}
wait(0.1);
+ led = !led;
}
+ led = 0;
if(push) break;
- led = 0;
ground_P = get_P();
ground_T = get_T();
//height = ( pow(ground_P/pressure, 1/5.257f)-1 )*(temp+273.15f)/0.0065f;
@@ -275,7 +276,6 @@
printf("%s\r\n\r\n",str_lcd);
printf("height=%f m\r\n",height);
ssd1306_draw_meter( (int)height );
-
}
init = true;
printf("P0=%f P=%f T=%f B-G=%f\r\n--------------------\r\n",ground_P,pressure,temp,pressure-ground_P);