aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/Core/Threads/OperatingModes/utils/DrawTipTemperature.cpp
blob: b14cf64f75334ee71772178049643e8b0053c24e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "OperatingModeUtilities.h"
#include "OperatingModes.h"
#include "TipThermoModel.h"

void gui_drawTipTemp(bool symbol, const FontStyle font) {
  // Draw tip temp handling unit conversion & tolerance near setpoint
  uint16_t Temp = getTipTemp();

  OLED::printNumber(Temp, 3, font); // Draw the tip temp out
  if (symbol) {
    // For big font, can draw nice symbols, otherwise fall back to chars
    OLED::printSymbolDeg(font == FontStyle::LARGE ? FontStyle::EXTRAS : font);
  }
}