pachas

Dependencies:   mbed QEI FastPWM

Revision:
10:b2d87404309a
Parent:
9:95fdcdc0977e
Child:
11:5cb7ae8bd831
--- a/ventilator.cpp	Sun Apr 26 08:50:12 2020 +0000
+++ b/ventilator.cpp	Mon Apr 27 19:52:02 2020 +0000
@@ -13,7 +13,7 @@
 
 /* Object definition */
 Ticker ticker_int_1ms; // Ticker interrupt
-
+DigitalOut test_pin(D13);
 
 /* Global variable definition */
 
@@ -203,6 +203,7 @@
     sensor_waveform_conta_1ms++;
     sensor_display_conta_1ms++;
     
+    
     // Read buttons and performs debounce action
     if(debounce_conta_1ms == DEBOUNCE_PERIOD_MS){
         debounce_conta_1ms = 0;
@@ -222,11 +223,12 @@
     if(sensor_waveform_conta_1ms  == SENSOR_WAVEFORM_PLOT_PERIOD_MS){
         sensor_waveform_conta_1ms  = 0;
         pressure_sensor_waveform_update_flag = 1;
+        test_pin = !test_pin;
     }    
     // Indicates if it is time to display the volume, flow and pressure values */   
     if(sensor_display_conta_1ms  == SENSOR_DISPLAY_PERIOD_MS){
         sensor_display_conta_1ms  = 0;
-        //pressure_sensor_display_update_flag = 1;
+        pressure_sensor_display_update_flag = 1;
     }               
         
 }