fixed OLED methods
This commit is contained in:
parent
ce45893fe9
commit
c1e5cdfff1
2 changed files with 18 additions and 2 deletions
|
@ -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);
|
||||
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue