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

Changes

RevisionDateWhoCommit message
22:3de592f8e696 2018-05-10 asong Added stages to the heart rate simulation default tip
21:76237b62466b 2018-05-08 asong Fixed some refreshing of values
20:990951205fbd 2018-05-07 asong 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.
19:87ab6daf98e5 2018-05-01 nbaker 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.
18:1f28eca85e3f 2018-04-16 nbaker v2.15 - added display screens 41 and 42 back in.
17:746dc1b7b218 2018-04-13 asong Optimized some heart rate displays
16:537ef0c72084 2018-04-12 nbaker 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.
15:330794a9f347 2018-04-11 asong 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.
14:c3b080cdf36b 2018-04-11 asong Added heart rate measurement, simulation, correct leds, and other heart rate improvements. WDT needs messing with to work better with the heart rate measurements.;
13:37cd579208e9 2018-04-09 nbaker 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.
12:fd39a7983e06 2018-03-29 nbaker 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.
11:ccda4d44bd8e 2018-03-28 nbaker v2.10 - Added BLE pairing code (need to test it), spoofing amb light sensor data for alert status.
10:eaea844e763c 2018-03-26 nbaker 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.
9:d2e39ee9fedd 2018-03-06 nbaker 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.;
8:a5c77b45008d 2018-02-19 nbaker This version has BLE screens added, data values refreshed at 2Hz for two screens, fall function variables are adjustable, and other minor improvements.
7:3d5a8aea0b63 2018-02-14 nbaker 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).
6:84e3ba00b995 2018-02-13 jmr274 added Heat Index II
5:e1431272be79 2018-02-13 jmr274 Added Heat Index
4:0803151bc5e4 2018-02-12 nbaker This version has the free-fall detect incorporated into the main code, as well as the battery percentage display on the main screen.
3:6792c1ba586c 2018-02-08 asong newest copy
2:824ed4ae8d52 2018-02-05 asong Newest version with cleaned up code and more heart rate logic ; ; -Alex
1:e4b38d6918ba 2018-02-03 asong Alex's version including heart rate code;
0:d1d36a3da39b 2017-11-12 nbaker This is my first attempt at the menu structure and basic features.