![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Here
Dependencies: Hexi_KW40Z Hexi_OLED_SSD1351 nRF24L01 FXOS8700
Diff: main.cpp
- Revision:
- 2:172492c41c48
- Parent:
- 1:ee1a74958b09
- Child:
- 3:065e8a7824d4
--- a/main.cpp Mon Mar 06 17:51:09 2017 +0000 +++ b/main.cpp Thu Mar 09 04:34:39 2017 +0000 @@ -49,9 +49,9 @@ char txData[TRANSFER_SIZE]; /* Pointer for the image to be displayed */ -const uint8_t *safeBMP = fallbutton_bmp; -const uint8_t *heartrateBMP = heartrate_bmp; -const uint8_t *safeelderBMP = safeelder_bmp; +const uint8_t *SafeBMP = HexiSafe96_bmp; + + /****************************Call Back Functions*******************************/ /*Send Button */ @@ -77,8 +77,8 @@ greenLed = !sentMessageDisplayedFlag; /*Redraw Send Button*/ - oled.DrawImage(heartrateBMP,53,81); - screenHandler(screenNum,prefix); + // oled.DrawImage(heartrateBMP,53,81); + //screenHandler(screenNum,prefix); } /*Toggles Between I am @ and Meet @ */ @@ -93,10 +93,10 @@ greenLed = !sentMessageDisplayedFlag; /*Redraw Send Button*/ - oled.DrawImage(heartrateBMP,53,81); + // oled.DrawImage(heartrateBMP,53,81); - prefix = !prefix; - screenHandler(screenNum,prefix); + // prefix = !prefix; + // screenHandler(screenNum,prefix); } } @@ -110,7 +110,7 @@ greenLed = !sentMessageDisplayedFlag; /*Redraw Send Button*/ - oled.DrawImage(heartrateBMP,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(fallbuttonBMP,0,81); - oled.DrawImage(heartrateBMP,53,81); - oled.DrawImage(safeelder_bmp,0,0); + oled.DrawImage(HexiSafe96_bmp,0,0); + + while (true) { @@ -295,7 +295,7 @@ oled.TextBox(" ",0,20,95,18); //Text for Line 2 - switch(header) + switch(header) { case 0: { @@ -318,7 +318,7 @@ } //Text for Line 3 - switch (stageNum) + switch (stageNum) { case 0: {