The HexiHeart is a demo project product that takes advantage of many of the onboard Hexiwear sensors and capabilities to create a multifunctional fitness and safety watch.

Dependencies:   FXAS21002 FXOS8700 Hexi_KW40Z Hexi_OLED_SSD1351 MAXIM W25Q64FVSSIG HTU21D MPL3115A2 TSL2561

Fork of HexiHeart_Alex by Hexiwear_zeta

Files at this revision

API Documentation at this revision

Comitter:
asong
Date:
Thu Feb 08 03:25:01 2018 +0000
Parent:
2:824ed4ae8d52
Child:
4:0803151bc5e4
Commit message:
newest copy

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Feb 05 16:14:13 2018 +0000
+++ b/main.cpp	Thu Feb 08 03:25:01 2018 +0000
@@ -1527,9 +1527,10 @@
         BLU_Led = LED_OFF;
         RED_Led = LED_ON;
         GRN_Led = LED_ON;
-        //wait(0.5);
-        //RED_Led = LED_OFF;
-        //GRN_Led = LED_OFF;
+        
+        wait(0.5);
+        RED_Led = LED_OFF;
+        GRN_Led = LED_OFF;
     }  
     else if(Current_Zone == 2)
     {
@@ -1543,8 +1544,8 @@
             GRN_Led = LED_OFF;
         }
         BLU_Led = LED_ON;
-        //wait(0.5);  
-        //BLU_Led = LED_OFF; 
+        wait(0.5);  
+        BLU_Led = LED_OFF; 
     }
     else if(Current_Zone == 3)
     {
@@ -1557,15 +1558,15 @@
             RED_Led = LED_OFF;
         }
         GRN_Led = LED_ON;
-        //wait(0.5);  
-        //GRN_Led = LED_OFF; 
+        wait(0.5);  
+        GRN_Led = LED_OFF; 
     }
     else if(Current_Zone == 4)
     {
         GRN_Led = LED_OFF;
         RED_Led = LED_ON;
-        //wait(0.5);  
-        //RED_Led = LED_OFF; 
+        wait(0.5);  
+        RED_Led = LED_OFF; 
     }
   }