Skip to content

Commit

Permalink
🎨 Consolidate Ender-3 V2 DWIN common code (MarlinFirmware#22778)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Darred committed Dec 1, 2021
1 parent 5e96508 commit 3c6a2c5
Show file tree
Hide file tree
Showing 39 changed files with 1,512 additions and 4,078 deletions.
18 changes: 9 additions & 9 deletions Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
#include <lvgl.h>
#endif

#if ENABLED(DWIN_CREALITY_LCD)
#include "lcd/e3v2/creality/dwin.h"
#include "lcd/e3v2/creality/rotary_encoder.h"
#elif ENABLED(DWIN_CREALITY_LCD_ENHANCED)
#include "lcd/e3v2/enhanced/dwin.h"
#include "lcd/e3v2/enhanced/rotary_encoder.h"
#elif ENABLED(DWIN_CREALITY_LCD_JYERSUI)
#include "lcd/e3v2/jyersui/dwin.h"
#include "lcd/e3v2/jyersui/rotary_encoder.h"
#if HAS_DWIN_E3V2
#include "lcd/e3v2/common/encoder.h"
#if ENABLED(DWIN_CREALITY_LCD)
#include "lcd/e3v2/creality/dwin.h"
#elif ENABLED(DWIN_CREALITY_LCD_ENHANCED)
#include "lcd/e3v2/enhanced/dwin.h"
#elif ENABLED(DWIN_CREALITY_LCD_JYERSUI)
#include "lcd/e3v2/jyersui/dwin.h"
#endif
#endif

#if ENABLED(EXTENSIBLE_UI)
Expand Down
3 changes: 2 additions & 1 deletion Marlin/src/inc/Conditionals_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,9 @@
#endif
#endif

#if EITHER(DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI)
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
#define HAS_LCD_BRIGHTNESS 1
#define MAX_LCD_BRIGHTNESS 31
#endif

/**
Expand Down
Loading

0 comments on commit 3c6a2c5

Please sign in to comment.