![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Here
Dependencies: Hexi_KW40Z Hexi_OLED_SSD1351 nRF24L01 FXOS8700
Diff: main.cpp
- Revision:
- 8:5532a9c895be
- Parent:
- 7:46729d931f26
- Child:
- 9:5e63a3928e43
--- a/main.cpp Mon Mar 13 17:44:15 2017 +0000 +++ b/main.cpp Mon Mar 13 19:24:23 2017 +0000 @@ -63,6 +63,7 @@ const uint8_t *FallPageBMP = FallDetPage_bmp; const uint8_t *HomeBMP = Home_bmp; const uint8_t *HeartPageBMP = HeartRatePage_bmp; +const uint8_t *AlertBMP = Alert_bmp; //***************************Call Back Functions****************************** @@ -115,10 +116,13 @@ accelerometer = false; } else { screenNum--; + } screenHandler(screenNum); + } + else{ + + screenHandler(6); + } - screenHandler(screenNum); - } - } //Advances to Heartrate only when user @@ -235,6 +239,10 @@ drawAccel(); break; } + case 6: { + //AlertNotification + oled.DrawImage(AlertBMP,10,25); + } default: { break; } @@ -246,8 +254,8 @@ } -void accelero(void) -{ +void accelero(void) { + // Configure Accelerometer FXOS8700, Magnetometer FXOS8700 accel.accel_config(); //oled.DrawImage(FallPageBMP,0,0);