![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Here
Dependencies: Hexi_KW40Z Hexi_OLED_SSD1351 nRF24L01 FXOS8700
Diff: main.cpp
- Revision:
- 1:ee1a74958b09
- Parent:
- 0:6384ad26fe6c
- Child:
- 2:172492c41c48
diff -r 6384ad26fe6c -r ee1a74958b09 main.cpp --- a/main.cpp Mon Mar 06 17:20:12 2017 +0000 +++ b/main.cpp Mon Mar 06 17:51:09 2017 +0000 @@ -49,9 +49,9 @@ char txData[TRANSFER_SIZE]; /* Pointer for the image to be displayed */ -const uint8_t *homeBMP = HEXIWEAR_HOME_bmp; -const uint8_t *sendBMP = HEXIWEAR_SEND_bmp; -const uint8_t *bannerBMP = hexicomm_bmp; +const uint8_t *safeBMP = fallbutton_bmp; +const uint8_t *heartrateBMP = heartrate_bmp; +const uint8_t *safeelderBMP = safeelder_bmp; /****************************Call Back Functions*******************************/ /*Send Button */ @@ -77,7 +77,7 @@ greenLed = !sentMessageDisplayedFlag; /*Redraw Send Button*/ - oled.DrawImage(sendBMP,53,81); + oled.DrawImage(heartrateBMP,53,81); screenHandler(screenNum,prefix); } @@ -93,7 +93,7 @@ greenLed = !sentMessageDisplayedFlag; /*Redraw Send Button*/ - oled.DrawImage(sendBMP,53,81); + oled.DrawImage(heartrateBMP,53,81); prefix = !prefix; screenHandler(screenNum,prefix); @@ -110,7 +110,7 @@ greenLed = !sentMessageDisplayedFlag; /*Redraw Send Button*/ - oled.DrawImage(sendBMP,53,81); + oled.DrawImage(heartrateBMP,53,81); if (screenNum < NUM_OF_SCREENS -1) { screenNum++; @@ -170,9 +170,9 @@ displayHome(); /*Draw Home Button and Send Button*/ - oled.DrawImage(homeBMP,0,81); - oled.DrawImage(sendBMP,53,81); - oled.DrawImage(hexicomm_bmp,0,0); + oled.DrawImage(fallbuttonBMP,0,81); + oled.DrawImage(heartrateBMP,53,81); + oled.DrawImage(safeelder_bmp,0,0); while (true) {