void Screen::displayScreenTime() { lcdSetCursor0_0(); lcdPrint_P(PSTR("time: ")); lcdPrintTime(getTimeSec()); lcdSetCursor0_1(); lcdPrint_P(PSTR("b ")); lcdPrintTime(totalBalanceTime_/1000); lcdPrint_P(PSTR(" ")); lcdPrintTime(totalChargDischargeTime_/1000); }
void screenEnd(const char * firstLine) { lcdSetCursor0_0(); lcdPrint_P(firstLine); lcdPrintTime(Monitor::getTimeSec()); lcdSetCursor0_1(); lcdPrint_P(Program::stopReason); lcdPrintSpaces(); }
void Screen::Cycle::displayCycles() { uint8_t c, time = Blink::blinkTime_/8; uint8_t all_scr = ProgramDCcycle::currentCycle/2 + 1; c = time % all_scr; lcdSetCursor0_0(); lcdPrintUnsigned(c+1, 1); lcdPrintChar(SCREEN_EMPTY_CELL_CHAR); lcdPrintTime(cyclesHistoryTime[c*2], 6); lcdPrintSpace1(); lcdPrintChar(SCREEN_FULL_CELL_CHAR); lcdPrintTime(cyclesHistoryTime[c*2+1], 6); lcdPrintSpaces(); lcdSetCursor0_1(); lcdPrintCharge(cyclesHistoryCapacity[c*2],8); lcdPrintCharge(cyclesHistoryCapacity[c*2+1],8); lcdPrintSpaces(); }
void Screen::printChar_Time() { char c = 'N'; if(smps.isPowerOn()) { c = 'C'; } else if(discharger.isPowerOn()) { c = 'D'; if(smps.isPowerOn()) c = 'E'; } else if(balancer.isWorking()) { c = 'B'; } lcdPrintChar(c); lcdPrintChar(' '); lcdPrintTime(getTimeSec()); lcdPrintChar(' '); }