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.
Dependencies: mbed FRDM-KL46Z_ECG
Revision 5:43a7c05b02cd, committed 2020-12-06
- Comitter:
- JulioDLuna
- Date:
- Sun Dec 06 04:32:13 2020 +0000
- Parent:
- 4:fde3fe13c27b
- Commit message:
- Con Pantalla
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 06 02:48:59 2020 +0000 +++ b/main.cpp Sun Dec 06 04:32:13 2020 +0000 @@ -29,9 +29,10 @@ int main(){ pc_serial.baud(9600); - m=1; + m=3; Controla(); Monitorea(); + Pantalla(); } void Controla(){ @@ -58,10 +59,6 @@ if(0.7<=E&&E<=0.9){G=2; escala=10;} if(0<=E&&E<=0.1){G=1;escala=5;} pc_serial.printf("G:%d escala:%d mm/mV\r\n",G,escala); - /*do{ - Bradicardia6s[c]=(Bradicardia6s[c]*G)+1.65; - c=c+1; - }while(c<2799);*/ } void Monitorea(){ @@ -80,13 +77,14 @@ if(frec>50&&frec<60){pc_serial.printf("LED Amarillo Posible Bradicardia!\r\n");} if(frec>100&&frec<110){pc_serial.printf("LED Amarillo Posible Taquicardia!\r\n");} if(frec<=50){pc_serial.printf("LED Rojo Bradicardia!\r\n");} - if(frec>=110){pc_serial.printf("LED Rojo Taquicardia!\r\n");} - + if(frec>=110){pc_serial.printf("LED Rojo Taquicardia!\r\n");} } void Pantalla(){ - /*do{ - pc_serial.printf("QRS:%d f: %d\r\n",qrs,frec); - }while(c<2799);*/ + do{ + Bradicardia6s[c]=(Bradicardia6s[c]*G)+1.65; + pc_serial.printf("%f \r\n",Bradicardia6s[c]); + c=c+1; + }while(c<2799); }