fixed indentation after linebreak, made some refactoring

This commit is contained in:
hhaupt
2024-06-05 13:13:26 +02:00
parent 4ffed430e2
commit e30395e8a6
4 changed files with 88 additions and 71 deletions

View File

@ -19,10 +19,16 @@ class Display{
protected:
//how many chars are on current line
uint8_t charsOnCurrLine = 0;
//on which line are we currently printing
uint8_t currLine = 0;
//flag that marks if the y-orientation is currently flipped
bool orientationFlipped = false;
//flag thats marks if the color is currently inverted
bool colorInverted = false;
/**
* @brief sends the passed cmd to the display, cmd_byte is added as prefix by the function
*
@ -65,11 +71,18 @@ class Display{
* @param value the string that should be printed
*/
void println(char *value);
void print(int value);
/**
* @brief flips the horizontal orientation of all content on the display
*/
void flipOrientation(void);
/**
* @brief inverts the pixelcolors, so pixels on will be set to off and currently off pixels will be turned off.
* affects already printed content as well as future prints.
*
*/
void invertColor(void);
};