mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-20 19:41:47 +02:00
add print int function to display
This commit is contained in:
parent
215155035e
commit
c40930537a
@ -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");
|
||||
|
@ -87,6 +87,21 @@ class Display{
|
||||
*/
|
||||
void println(String value);
|
||||
|
||||
/**
|
||||
* @brief prints the passed string right behind the current displaycontent
|
||||
* the sequence "\n" can be used to make a linebreak on the display
|
||||
*
|
||||
* @param value the string "xyz" that should be printed to the display
|
||||
*/
|
||||
void print(int value);
|
||||
|
||||
/**
|
||||
* @brief same as the print method, but after the string a line break is inserted
|
||||
*
|
||||
* @param value the string that should be printed
|
||||
*/
|
||||
void println(int value);
|
||||
|
||||
/**
|
||||
* @brief string to char
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user