Skip to content

Commit

Permalink
DGUS_LCD_UI: add option to rotate the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbq committed Feb 17, 2023
1 parent 38e6330 commit 550c936
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3048,6 +3048,8 @@
//#define DGUS_LCD_UI ORIGIN
#if DGUS_UI_IS(MKS)
#define USE_MKS_GREEN_UI
#elif DGUS_UI_IS(IA_CREALITY)
//#define ROTATE_0_POINT //Portrait Mode or 800x480 displays
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/ia_creality/creality_extui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ namespace ExtUI {
| (Settings.display_sound ? _BV(3) : 0) // 3: audio
| (Settings.display_standby ? _BV(2) : 0) // 2: backlight on standby
| (Settings.screen_rotation == 10 ? _BV(1) : 0) // 1 & 0: Inversion
#if EITHER(MachineCR10Smart, MachineCR10SmartPro)
#if ROTATE_0_POINT
| _BV(0) // Portrait Mode or 800x480 display has 0 point rotated 90deg from 480x272 display
#endif
;
Expand Down

0 comments on commit 550c936

Please sign in to comment.