Added ability to configure display rotation

This commit is contained in:
Mark Qvist 2024-12-31 13:23:48 +01:00
parent 786c9990fb
commit 2604b44d64
5 changed files with 80 additions and 37 deletions

View file

@ -1099,6 +1099,21 @@ void serialCallback(uint8_t sbyte) {
display_unblank();
}
#endif
} else if (command == CMD_DISP_ROT) {
#if HAS_DISPLAY
if (sbyte == FESC) {
ESCAPE = true;
} else {
if (ESCAPE) {
if (sbyte == TFEND) sbyte = FEND;
if (sbyte == TFESC) sbyte = FESC;
ESCAPE = false;
}
drot_conf_save(sbyte);
display_unblank();
}
#endif
} else if (command == CMD_NP_INT) {
#if HAS_NP