mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-30 18:18:34 -04:00
Added ability to configure display rotation
This commit is contained in:
parent
786c9990fb
commit
2604b44d64
5 changed files with 80 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue