fix diagramme
This commit is contained in:
@ -21,13 +21,6 @@ public:
|
||||
*/
|
||||
void welcome();
|
||||
|
||||
/**
|
||||
* @brief print the total amount on the screen
|
||||
*
|
||||
* @param amount The total amount to print in centimes
|
||||
*/
|
||||
void printAmount(int amount);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Clear the screen
|
||||
|
@ -40,26 +40,6 @@ void OledScreen::printVal(String distance, String poid, String humitemp){
|
||||
|
||||
|
||||
|
||||
void OledScreen::printAmount(int amount) {
|
||||
this->display->clearDisplay();
|
||||
this->display->setCursor(0, 0);
|
||||
this->display->setTextSize(2);
|
||||
this->display->setTextColor(WHITE);
|
||||
this->display->println(F(" Total: "));
|
||||
this->display->println();
|
||||
|
||||
this->display->print(amount / 100);
|
||||
this->display->print(F(","));
|
||||
int centimes = amount % 100;
|
||||
if (centimes < 10) {
|
||||
this->display->print(F("0"));
|
||||
}
|
||||
this->display->println(centimes);
|
||||
this->display->print(F(" EUR"));
|
||||
this->display->display();
|
||||
}
|
||||
|
||||
|
||||
void OledScreen::wifiWaiting() {
|
||||
this->clear();
|
||||
this->display->setCursor(0, 0);
|
||||
|
Reference in New Issue
Block a user