added documentation to display headerfile

This commit is contained in:
Hans Haupt
2024-06-04 19:53:31 +02:00
parent d67a33c53f
commit 4ffed430e2
3 changed files with 54 additions and 2 deletions

View File

@ -138,8 +138,20 @@ void Display::print(char *value){
return;
};
void Display::println(char *value){
void Display::flipOrientation(void){
if(this->orientationFlipped){
sendDisplayCMD(setComDirectionNormal);
sendDisplayCMD(setSegmentMap);
} else{
sendDisplayCMD(setComDirectionFlipped);
sendDisplayCMD(setSegmentReMap);
}
this->orientationFlipped = !this->orientationFlipped;
}
void Display::println(char *value){
this ->print(value);
this->print("\n");
};
void Display::print(int value){