Add toggle for power display
This commit is contained in:
@@ -30,7 +30,7 @@ typedef enum {
|
|||||||
TEMPCAL, //Cal tip temp offset
|
TEMPCAL, //Cal tip temp offset
|
||||||
|
|
||||||
} operatingModeEnum;
|
} operatingModeEnum;
|
||||||
#define SETTINGSOPTIONSCOUNT 10 /*Number of settings in the settings menu*/
|
#define SETTINGSOPTIONSCOUNT 11 /*Number of settings in the settings menu*/
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
UVCO = 0,
|
UVCO = 0,
|
||||||
@@ -44,6 +44,7 @@ typedef enum {
|
|||||||
LEFTY,
|
LEFTY,
|
||||||
BOOSTMODE,
|
BOOSTMODE,
|
||||||
BOOSTTEMP,
|
BOOSTTEMP,
|
||||||
|
POWERDISPLAY,
|
||||||
} settingsPageEnum;
|
} settingsPageEnum;
|
||||||
|
|
||||||
void ProcessUI();
|
void ProcessUI();
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ const char *SettingsLongNames[] = {
|
|||||||
" Temperature Display Update Rate",
|
" Temperature Display Update Rate",
|
||||||
" Flip Display for Left Hand",
|
" Flip Display for Left Hand",
|
||||||
" Enable front key boost 450C mode when soldering",
|
" Enable front key boost 450C mode when soldering",
|
||||||
" Temperature when in boost mode" };
|
" Temperature when in boost mode",
|
||||||
|
" Changes the arrows to a power display when soldering" };
|
||||||
uint8_t StatusFlags = 0;
|
uint8_t StatusFlags = 0;
|
||||||
uint32_t temporaryTempStorage = 0;
|
uint32_t temporaryTempStorage = 0;
|
||||||
|
|
||||||
@@ -225,6 +226,9 @@ void ProcessUI() {
|
|||||||
if (systemSettings.BoostTemp > 4500)
|
if (systemSettings.BoostTemp > 4500)
|
||||||
systemSettings.BoostTemp = 2500; //loop back at 250
|
systemSettings.BoostTemp = 2500; //loop back at 250
|
||||||
break;
|
break;
|
||||||
|
case POWERDISPLAY:
|
||||||
|
systemSettings.powerDisplay = !systemSettings.powerDisplay;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -469,7 +473,7 @@ void DrawUI() {
|
|||||||
//Optionally draw the arrows, or draw the power instead
|
//Optionally draw the arrows, or draw the power instead
|
||||||
if (systemSettings.powerDisplay) {
|
if (systemSettings.powerDisplay) {
|
||||||
//We want to draw in a neat little bar graph of power being pushed to the tip
|
//We want to draw in a neat little bar graph of power being pushed to the tip
|
||||||
Oled_DrawArea(6 * 12, 0, 12, 8, 0);
|
|
||||||
} else {
|
} else {
|
||||||
//Draw in the arrows if the user has the power display turned off
|
//Draw in the arrows if the user has the power display turned off
|
||||||
OLED_BlankSlot(6 * 12 + 16, 24 - 16);//blank out the tail after the arrows
|
OLED_BlankSlot(6 * 12 + 16, 24 - 16);//blank out the tail after the arrows
|
||||||
@@ -616,6 +620,16 @@ void DrawUI() {
|
|||||||
OLED_DrawString("BTMP ", 5);
|
OLED_DrawString("BTMP ", 5);
|
||||||
OLED_DrawThreeNumber(systemSettings.BoostTemp / 10, 5);
|
OLED_DrawThreeNumber(systemSettings.BoostTemp / 10, 5);
|
||||||
break;
|
break;
|
||||||
|
case POWERDISPLAY:
|
||||||
|
switch (systemSettings.powerDisplay) {
|
||||||
|
case 1:
|
||||||
|
OLED_DrawString("PWRDSP T", 8);
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
OLED_DrawString("PWRDSP F", 8);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user