Skip to content

Commit

Permalink
✨ IA_CREALITY screen rotation (MarlinFirmware#25397)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <[email protected]>
  • Loading branch information
rmbq and thinkyhead committed May 16, 2023
1 parent 2d47da1 commit 65a420c
Show file tree
Hide file tree
Showing 3 changed files with 13 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 @@ -3029,6 +3029,8 @@
//#define DGUS_LCD_UI ORIGIN
#if DGUS_UI_IS(MKS)
#define USE_MKS_GREEN_UI
#elif DGUS_UI_IS(IA_CREALITY)
//#define LCD_SCREEN_ROTATE 90 // Portrait Mode or 800x480 displays
#endif

//
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/lcd/extui/ia_creality/creality_extui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1682,8 +1682,10 @@ 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 LCD_SCREEN_ROTATE == 90
| _BV(0) // Portrait Mode or 800x480 display has 0 point rotated 90deg from 480x272 display
#elif LCD_SCREEN_ROTATE
#error "Only 90° rotation is supported for the selected LCD."
#endif
;

Expand Down
8 changes: 8 additions & 0 deletions buildroot/tests/FYSETC_F6
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ restore_configs
opt_set MOTHERBOARD BOARD_FYSETC_F6_13 LCD_SERIAL_PORT 1 DGUS_LCD_UI FYSETC
exec_test $1 $2 "FYSETC F6 1.3 with DGUS (FYSETC)" "$3"

#
# Test IA_CREALITY
#
restore_configs
opt_set MOTHERBOARD BOARD_FYSETC_F6_13 LCD_SERIAL_PORT 1 DGUS_LCD_UI IA_CREALITY LCD_SCREEN_ROTATE 90
opt_enable ADVANCED_PAUSE_FEATURE LCD_BED_TRAMMING CLASSIC_JERK BABYSTEPPING AUTO_BED_LEVELING_BILINEAR NOZZLE_PARK_FEATURE PROBE_MANUALLY
exec_test $1 $2 "FYSETC F6 1.3 with DGUS (IA_CREALITY)" "$3"

#
# Delta Config (generic) + UBL + ALLEN_KEY + EEPROM_SETTINGS + OLED_PANEL_TINYBOY2
#
Expand Down

0 comments on commit 65a420c

Please sign in to comment.