mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Update draw_homescreen_simplified.cpp
Is It fOrMaTtEd EnOuGh??
This commit is contained in:
@@ -7,14 +7,13 @@ extern uint8_t disconnectedTipF[sizeof(disconnectedTip)];
|
|||||||
|
|
||||||
void ui_draw_homescreen_simplified(TemperatureType_t tipTemp) {
|
void ui_draw_homescreen_simplified(TemperatureType_t tipTemp) {
|
||||||
bool tipDisconnected = isTipDisconnected();
|
bool tipDisconnected = isTipDisconnected();
|
||||||
bool displayTemp = (tipTemp > 55) && !tipDisconnected;
|
|
||||||
bool isFlipped = OLED::getRotation();
|
bool isFlipped = OLED::getRotation();
|
||||||
bool isReverse = getSettingValue(SettingsOptions::ReverseButtonNavEnabled);
|
bool isReverse = getSettingValue(SettingsOptions::ReverseButtonNavEnabled);
|
||||||
// Flip and switch buttons accordingly
|
// Flip and switch buttons accordingly
|
||||||
OLED::drawArea(isFlipped ? 54 : 0, 0, 42, 16, isFlipped ? (isReverse ? buttonBF : buttonAF) : (isReverse ? buttonB : buttonA));
|
OLED::drawArea(isFlipped ? 54 : 0, 0, 42, 16, isFlipped ? (isReverse ? buttonBF : buttonAF) : (isReverse ? buttonB : buttonA));
|
||||||
OLED::drawArea(isFlipped ? 12 : 42, 0, 42, 16, isFlipped ? (isReverse ? buttonAF : buttonBF) : (isReverse ? buttonA : buttonB));
|
OLED::drawArea(isFlipped ? 12 : 42, 0, 42, 16, isFlipped ? (isReverse ? buttonAF : buttonBF) : (isReverse ? buttonA : buttonB));
|
||||||
|
|
||||||
if (displayTemp || tipDisconnected) {
|
if (((tipTemp > 55) && !tipDisconnected) || tipDisconnected) {
|
||||||
// draw temp over the start soldering button
|
// draw temp over the start soldering button
|
||||||
// Location changes on screen rotation
|
// Location changes on screen rotation
|
||||||
// in right handed mode we want to draw over the first part
|
// in right handed mode we want to draw over the first part
|
||||||
@@ -26,6 +25,7 @@ void ui_draw_homescreen_simplified(TemperatureType_t tipTemp) {
|
|||||||
if (!(getSettingValue(SettingsOptions::CoolingTempBlink) && (xTaskGetTickCount() % 1000 < 300))) {
|
if (!(getSettingValue(SettingsOptions::CoolingTempBlink) && (xTaskGetTickCount() % 1000 < 300))) {
|
||||||
ui_draw_tip_temperature(false, FontStyle::LARGE); // draw in the temp
|
ui_draw_tip_temperature(false, FontStyle::LARGE); // draw in the temp
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Draw-in the missing tip symbol
|
// Draw-in the missing tip symbol
|
||||||
if (isReverse) {
|
if (isReverse) {
|
||||||
|
|||||||
Reference in New Issue
Block a user