diff --git a/vscode/Unendlichkeitsmaschine/include/oled.hpp b/vscode/Unendlichkeitsmaschine/include/oled.hpp index 943a0f6..98b762f 100644 --- a/vscode/Unendlichkeitsmaschine/include/oled.hpp +++ b/vscode/Unendlichkeitsmaschine/include/oled.hpp @@ -34,9 +34,10 @@ class Oled public: void begin(); + void progressBar(uint8_t i); + void progressBar(uint8_t i, String big_text); + void progressBar(uint8_t i, String big_text, String small_text1); void progressBar(uint8_t i, String big_text, String small_text1, String small_text2); - void progressBar(uint8_t i, String big_text = "", String small_text1 = "", String small_text2 = ""); - void progressBar(uint8_t i, String big_text , String small_text1 = "", String small_text2 = ""); void show_values(int speed, int min_speed, int max_speed, volatile DataStruct *HallData, uint8_t hall_sensors_count, unsigned long runtime, String ipaddr); }; diff --git a/vscode/Unendlichkeitsmaschine/src/oled.cpp b/vscode/Unendlichkeitsmaschine/src/oled.cpp index 3896ca9..3e31f4e 100644 --- a/vscode/Unendlichkeitsmaschine/src/oled.cpp +++ b/vscode/Unendlichkeitsmaschine/src/oled.cpp @@ -22,6 +22,21 @@ void Oled::begin() display->setFont(ArialMT_Plain_16); } +void Oled::progressBar(uint8_t i) +{ + progressBar(i, "", "", ""); +} + +void Oled::progressBar(uint8_t i, String big_text) +{ + progressBar(i, big_text, "", ""); +} + +void Oled::progressBar(uint8_t i, String big_text, String small_text1) +{ + progressBar(i, big_text, small_text1, ""); +} + void Oled::progressBar(uint8_t i, String big_text, String small_text1, String small_text2) { display->drawProgressBar(6, 28, 116, 6, i);