Skip to content
Snippets Groups Projects
Commit b9d12db9 authored by BadWolf42's avatar BadWolf42 Committed by GitHub
Browse files

Added resetOrientation

parent 4f1ec926
No related branches found
No related tags found
No related merge requests found
......@@ -550,6 +550,11 @@ void OLEDDisplay::setContrast(char contrast) {
sendCommand(contrast);
}
void OLEDDisplay::resetOrientation() {
sendCommand(SEGREMAP);
sendCommand(COMSCANINC); //Reset screen rotation or mirroring
}
void OLEDDisplay::flipScreenVertically() {
sendCommand(SEGREMAP | 0x01);
sendCommand(COMSCANDEC); //Rotate screen 180 Deg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment