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

Revisions of main.cpp

Revision Date Message Actions
22:3de592f8e696 2018-05-10 Added stages to the heart rate simulation File  Diff  Annotate
21:76237b62466b 2018-05-08 Fixed some refreshing of values File  Diff  Annotate
20:990951205fbd 2018-05-07 Fixed WDT going off on some of the heart rate vibrations. Heart rate now displays on the main screen when the heart rate mode is active, and is displayed in the color of the zone. File  Diff  Annotate
19:87ab6daf98e5 2018-05-01 v2.16 - Cast rolling average calculations as float to reduce rounding error. removed two screens from diagnostic because we don't use them.; Changed FAP to AFP in two locations. File  Diff  Annotate
18:1f28eca85e3f 2018-04-16 v2.15 - added display screens 41 and 42 back in. File  Diff  Annotate
17:746dc1b7b218 2018-04-13 Optimized some heart rate displays File  Diff  Annotate
16:537ef0c72084 2018-04-12 v2.14-Retasked hr_led Ticker to turn off heart rate zone LEDs. added HR screen #7 to screens that get refreshed with new data twice a second. Reduced WDT back to 2 seconds. Increased rolling average to 10 samples. removed 0.05s wait during HR read. File  Diff  Annotate
15:330794a9f347 2018-04-11 Fixed issues from previous upload. Also fixed the heat index display on the home screen to show regardless of the value. WDT causes heart rate measurement to restart the device. WDT causes manual hr in/decrementing slow. File  Diff  Annotate
14:c3b080cdf36b 2018-04-11 Added heart rate measurement, simulation, correct leds, and other heart rate improvements. WDT needs messing with to work better with the heart rate measurements.; File  Diff  Annotate
13:37cd579208e9 2018-04-09 v2.12 - Added hidden reset feature (push L-button 9+ times to reset), added line that might put K64 into low pow run mode, added dimming feature, changed humid/temp & battery measurement to a rolling average. Made new screen for panic alert. File  Diff  Annotate
12:fd39a7983e06 2018-03-29 v2.11 - Added Send_Alert(0) to turn off alerts by sending amb_light=0, ; added WDT and added WDT testing screens, changed fall Min_Movement_duration from 60s to 10s, added subtle vibration after impact for diagnostic purposes. File  Diff  Annotate
11:ccda4d44bd8e 2018-03-28 v2.10 - Added BLE pairing code (need to test it), spoofing amb light sensor data for alert status. File  Diff  Annotate
10:eaea844e763c 2018-03-26 Added final fall mode (full sequential fall algorithm), including alert screen and dismiss alert screen. Added FAP (Fall Alert Protection) to main screen. fixed "aggressive Haptic" problem by using a Ticker to turn off Haptic instead of RTOS. File  Diff  Annotate
9:d2e39ee9fedd 2018-03-06 Fixed impact detect functionality, all fall detect parameters are now adjustable, added motion detect function, incorporated new heat index calc, increased font by 20% for time/date. Added SW and power resetting to initialize sensors in known state.; File  Diff  Annotate
8:a5c77b45008d 2018-02-19 This version has BLE screens added, data values refreshed at 2Hz for two screens, fall function variables are adjustable, and other minor improvements. File  Diff  Annotate
7:3d5a8aea0b63 2018-02-14 This version has both the free-fall interrupt (set to 0.5g) and the impact interrupt (set to about 2g) working independently (either one can occur at any time). Also, time and date disp now work but are not adj (defaults to 2/19/18 at 10am). File  Diff  Annotate
6:84e3ba00b995 2018-02-13 added Heat Index II File  Diff  Annotate
5:e1431272be79 2018-02-13 Added Heat Index File  Diff  Annotate
4:0803151bc5e4 2018-02-12 This version has the free-fall detect incorporated into the main code, as well as the battery percentage display on the main screen. File  Diff  Annotate
3:6792c1ba586c 2018-02-08 newest copy File  Diff  Annotate
2:824ed4ae8d52 2018-02-05 Newest version with cleaned up code and more heart rate logic ; ; -Alex File  Diff  Annotate
1:e4b38d6918ba 2018-02-03 Alex's version including heart rate code; File  Diff  Annotate
0:d1d36a3da39b 2017-11-12 This is my first attempt at the menu structure and basic features. File  Diff  Annotate