add print int function to display

This commit is contained in:
Anton Jacker
2024-06-13 14:06:55 +02:00
parent 215155035e
commit c40930537a
2 changed files with 27 additions and 0 deletions

View File

@ -137,6 +137,18 @@ void Display::println(String value){
this->println(msgBuffer);
};
void Display::print(int value){
char cstr[16];
this->print(itoa(value, cstr, 10));
};
void Display::println(int value){
char cstr[16];
this->println(itoa(value, cstr, 10));
};
void Display::println(char *value){
this ->print(value);
this->print("\n");