mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 17:51:41 +02:00
fixed indentation after linebreak, made some refactoring
This commit is contained in:
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user