🎨 LCD_SCREEN_ROT_* => LCD_SCREEN_ROTATE

This commit is contained in:
Scott Lahteine 2022-01-19 03:27:10 -06:00
parent 8ea172cafe
commit 1d0ca179b5
25 changed files with 72 additions and 106 deletions

View File

@ -601,6 +601,12 @@
#error "PROBE_TEMP_COMPENSATION is now set using the PTC_PROBE, PTC_BED, PTC_HOTEND options." #error "PROBE_TEMP_COMPENSATION is now set using the PTC_PROBE, PTC_BED, PTC_HOTEND options."
#elif defined(BTC_PROBE_TEMP) #elif defined(BTC_PROBE_TEMP)
#error "BTC_PROBE_TEMP is now PTC_PROBE_TEMP." #error "BTC_PROBE_TEMP is now PTC_PROBE_TEMP."
#elif defined(LCD_SCREEN_ROT_90)
#error "LCD_SCREEN_ROT_90 is now LCD_SCREEN_ROTATE with a value of 90."
#elif defined(LCD_SCREEN_ROT_180)
#error "LCD_SCREEN_ROT_180 is now LCD_SCREEN_ROTATE with a value of 180."
#elif defined(LCD_SCREEN_ROT_270)
#error "LCD_SCREEN_ROT_270 is now LCD_SCREEN_ROTATE with a value of 270."
#endif #endif
#if MB(DUE3DOM_MINI) && PIN_EXISTS(TEMP_2) && DISABLED(TEMP_SENSOR_BOARD) #if MB(DUE3DOM_MINI) && PIN_EXISTS(TEMP_2) && DISABLED(TEMP_SENSOR_BOARD)
@ -2758,8 +2764,8 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#error "Please enable only one of TFT_INTERFACE_SPI or TFT_INTERFACE_SPI." #error "Please enable only one of TFT_INTERFACE_SPI or TFT_INTERFACE_SPI."
#endif #endif
#if MANY(LCD_SCREEN_ROT_0, LCD_SCREEN_ROT_90, LCD_SCREEN_ROT_180, LCD_SCREEN_ROT_270) #if defined(LCD_SCREEN_ROTATE) && LCD_SCREEN_ROTATE != 0 && LCD_SCREEN_ROTATE != 90 && LCD_SCREEN_ROTATE != 180 && LCD_SCREEN_ROTATE != 270
#error "Please enable only one LCD_SCREEN_ROT_* option: 0, 90, 180, or 270." #error "LCD_SCREEN_ROTATE must be 0, 90, 180, or 270."
#endif #endif
#if MANY(TFT_RES_320x240, TFT_RES_480x272, TFT_RES_480x320, TFT_RES_1024x600) #if MANY(TFT_RES_320x240, TFT_RES_480x272, TFT_RES_480x320, TFT_RES_1024x600)

View File

@ -294,9 +294,13 @@ void MarlinUI::init_lcd() {
TERN_(HAS_LCD_CONTRAST, refresh_contrast()); TERN_(HAS_LCD_CONTRAST, refresh_contrast());
TERN_(LCD_SCREEN_ROT_90, u8g.setRot90()); #if LCD_SCREEN_ROTATE == 90
TERN_(LCD_SCREEN_ROT_180, u8g.setRot180()); u8g.setRot90();
TERN_(LCD_SCREEN_ROT_270, u8g.setRot270()); #elif LCD_SCREEN_ROTATE == 180
u8g.setRot180();
#elif LCD_SCREEN_ROTATE == 270
u8g.setRot270();
#endif
update_language_font(); update_language_font();
} }

View File

@ -584,7 +584,6 @@
#define DOGLCD_CS 45 #define DOGLCD_CS 45
#define DOGLCD_A0 44 #define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
#define BEEPER_PIN 33 #define BEEPER_PIN 33
#define STAT_LED_RED_PIN 32 #define STAT_LED_RED_PIN 32
@ -597,6 +596,8 @@
#define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
#define KILL_PIN 31 #define KILL_PIN 31
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define DOGLCD_CS 29 #define DOGLCD_CS 29
@ -618,12 +619,6 @@
#define DOGLCD_A0 27 #define DOGLCD_A0 27
#define DOGLCD_CS 25 #define DOGLCD_CS 25
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BEEPER_PIN 37 #define BEEPER_PIN 37
// not connected to a pin // not connected to a pin
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65 #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
@ -635,6 +630,8 @@
#define SD_DETECT_PIN 49 #define SD_DETECT_PIN 49
#define KILL_PIN 64 #define KILL_PIN 64
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(MINIPANEL) #elif ENABLED(MINIPANEL)
#define BEEPER_PIN 42 #define BEEPER_PIN 42
@ -644,12 +641,6 @@
#define DOGLCD_A0 44 #define DOGLCD_A0 44
#define DOGLCD_CS 66 #define DOGLCD_CS 66
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BTN_EN1 40 #define BTN_EN1 40
#define BTN_EN2 63 #define BTN_EN2 63
#define BTN_ENC 59 #define BTN_ENC 59
@ -657,6 +648,8 @@
#define SD_DETECT_PIN 49 #define SD_DETECT_PIN 49
#define KILL_PIN 64 #define KILL_PIN 64
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ZONESTAR_LCD) #elif ENABLED(ZONESTAR_LCD)
#define ADC_KEYPAD_PIN 12 #define ADC_KEYPAD_PIN 12

View File

@ -278,11 +278,7 @@
#endif #endif
#elif ENABLED(MINIPANEL) #elif ENABLED(MINIPANEL)
// GLCD features //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#endif #endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -348,8 +348,6 @@
#endif #endif
#if ANY(VIKI2, miniVIKI) #if ANY(VIKI2, miniVIKI)
//#define LCD_SCREEN_ROT_180
#define DOGLCD_CS P0_16 // (16) #define DOGLCD_CS P0_16 // (16)
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2 #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
#define DOGLCD_SCK SD_SCK_PIN #define DOGLCD_SCK SD_SCK_PIN
@ -358,6 +356,8 @@
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else #else
#if ENABLED(FYSETC_MINI_12864) #if ENABLED(FYSETC_MINI_12864)
@ -406,11 +406,7 @@
#endif #endif
#if ENABLED(MINIPANEL) #if ENABLED(MINIPANEL)
// GLCD features //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#endif #endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -155,8 +155,6 @@
#endif #endif
#if ANY(VIKI2, miniVIKI) #if ANY(VIKI2, miniVIKI)
//#define LCD_SCREEN_ROT_180
#define BEEPER_PIN P1_30 // (37) may change if cable changes #define BEEPER_PIN P1_30 // (37) may change if cable changes
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2 #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
#define DOGLCD_SCK SD_SCK_PIN #define DOGLCD_SCK SD_SCK_PIN
@ -164,6 +162,8 @@
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else #else
#if IS_ULTIPANEL #if IS_ULTIPANEL
#define LCD_PINS_D5 P1_17 // (71) ENET_MDIO #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
@ -180,11 +180,7 @@
#endif #endif
#if ENABLED(MINIPANEL) #if ENABLED(MINIPANEL)
// GLCD features //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#endif #endif
#endif #endif

View File

@ -147,7 +147,6 @@
#define DOGLCD_CS 35 #define DOGLCD_CS 35
#define DOGLCD_MOSI 48 #define DOGLCD_MOSI 48
#define DOGLCD_SCK 49 #define DOGLCD_SCK 49
#define LCD_SCREEN_ROT_180
// The encoder and click button // The encoder and click button
#define BTN_EN1 36 #define BTN_EN1 36
@ -164,3 +163,5 @@
#define STAT_LED_BLUE_PIN -1 #define STAT_LED_BLUE_PIN -1
#define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN #define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270

View File

@ -139,17 +139,12 @@
#if ENABLED(MINIPANEL) #if ENABLED(MINIPANEL)
#define BEEPER_PIN 46 #define BEEPER_PIN 46
// Pins for DOGM SPI LCD Support
#define DOGLCD_A0 47 #define DOGLCD_A0 47
#define DOGLCD_CS 45 #define DOGLCD_CS 45
#define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3 #define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
#define KILL_PIN 12 #define KILL_PIN 12
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BTN_EN1 48 #define BTN_EN1 48
#define BTN_EN2 11 #define BTN_EN2 11
@ -157,6 +152,8 @@
#define SD_DETECT_PIN 49 #define SD_DETECT_PIN 49
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#endif // MINIPANEL #endif // MINIPANEL
// //

View File

@ -214,7 +214,6 @@
#define DOGLCD_A0 70 #define DOGLCD_A0 70
#define DOGLCD_CS 71 #define DOGLCD_CS 71
#define LCD_SCREEN_ROT_180
#define BTN_EN1 85 #define BTN_EN1 85
#define BTN_EN2 84 #define BTN_EN2 84
@ -225,6 +224,8 @@
#define STAT_LED_RED_PIN 22 #define STAT_LED_RED_PIN 22
#define STAT_LED_BLUE_PIN 32 #define STAT_LED_BLUE_PIN 32
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else // !VIKI2 && !miniVIKI #else // !VIKI2 && !miniVIKI
#define BEEPER_PIN 79 // AUX-4 #define BEEPER_PIN 79 // AUX-4

View File

@ -148,10 +148,11 @@
// Pins for DOGM SPI LCD Support // Pins for DOGM SPI LCD Support
#define DOGLCD_A0 70 #define DOGLCD_A0 70
#define DOGLCD_CS 71 #define DOGLCD_CS 71
#define LCD_SCREEN_ROT_180
#define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
#define STAT_LED_RED_PIN 22 #define STAT_LED_RED_PIN 22
#define STAT_LED_BLUE_PIN 32 #define STAT_LED_BLUE_PIN 32
#endif // VIKI2/miniVIKI
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#endif

View File

@ -30,8 +30,6 @@
#define BOARD_INFO_NAME "K8800" #define BOARD_INFO_NAME "K8800"
#define DEFAULT_MACHINE_NAME "Vertex Delta" #define DEFAULT_MACHINE_NAME "Vertex Delta"
//#define LCD_SCREEN_ROT_180
// //
// Limit Switches // Limit Switches
// //
@ -110,6 +108,7 @@
#define LCD_CONTRAST_MIN 0 #define LCD_CONTRAST_MIN 0
#define LCD_CONTRAST_MAX 100 #define LCD_CONTRAST_MAX 100
#define DEFAULT_LCD_CONTRAST 30 #define DEFAULT_LCD_CONTRAST 30
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#if IS_NEWPANEL #if IS_NEWPANEL
#define BTN_EN1 17 #define BTN_EN1 17

View File

@ -513,10 +513,7 @@
#if HAS_WIRED_LCD #if HAS_WIRED_LCD
// Uncomment screen orientation //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
// //
// LCD Display output pins // LCD Display output pins
@ -660,7 +657,7 @@
#define DOGLCD_CS AUX4_05_PIN #define DOGLCD_CS AUX4_05_PIN
#define DOGLCD_A0 AUX2_07_PIN #define DOGLCD_A0 AUX2_07_PIN
#define LCD_SCREEN_ROT_180 #define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#define BEEPER_PIN EXP2_06_PIN #define BEEPER_PIN EXP2_06_PIN
#define STAT_LED_RED_PIN AUX4_03_PIN #define STAT_LED_RED_PIN AUX4_03_PIN

View File

@ -402,7 +402,6 @@
#define DOGLCD_CS 45 #define DOGLCD_CS 45
#define DOGLCD_A0 44 #define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
#define BEEPER_PIN 33 #define BEEPER_PIN 33
#define STAT_LED_RED_PIN 32 #define STAT_LED_RED_PIN 32
@ -416,6 +415,8 @@
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board #define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
//#define KILL_PIN 31 //#define KILL_PIN 31
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define DOGLCD_CS 29 #define DOGLCD_CS 29
@ -437,13 +438,6 @@
#define DOGLCD_A0 27 #define DOGLCD_A0 27
#define DOGLCD_CS 25 #define DOGLCD_CS 25
// GLCD features
//#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BEEPER_PIN 37 #define BEEPER_PIN 37
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65 #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
@ -455,6 +449,9 @@
#define SD_DETECT_PIN 49 #define SD_DETECT_PIN 49
//#define KILL_PIN 64 //#define KILL_PIN 64
//#define LCD_CONTRAST_INIT 190
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(MINIPANEL) #elif ENABLED(MINIPANEL)
#define BEEPER_PIN 42 #define BEEPER_PIN 42
@ -464,13 +461,6 @@
#define DOGLCD_A0 44 #define DOGLCD_A0 44
#define DOGLCD_CS 66 #define DOGLCD_CS 66
// GLCD features
//#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BTN_EN1 40 #define BTN_EN1 40
#define BTN_EN2 63 #define BTN_EN2 63
#define BTN_ENC 59 #define BTN_ENC 59
@ -479,6 +469,9 @@
#define SD_DETECT_PIN 49 #define SD_DETECT_PIN 49
//#define KILL_PIN 64 //#define KILL_PIN 64
//#define LCD_CONTRAST_INIT 190
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else #else
// Beeper on AUX-4 // Beeper on AUX-4

View File

@ -413,7 +413,6 @@
// TO TEST // TO TEST
//#define DOGLCD_CS 45 //#define DOGLCD_CS 45
//#define DOGLCD_A0 44 //#define DOGLCD_A0 44
//#define LCD_SCREEN_ROT_180
//#define BEEPER_PIN 33 //#define BEEPER_PIN 33
//#define STAT_LED_RED_PIN 32 //#define STAT_LED_RED_PIN 32
@ -426,6 +425,8 @@
//#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board //#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
//#define KILL_PIN 31 //#define KILL_PIN 31
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
// TO TEST // TO TEST
@ -460,18 +461,14 @@
//#define DOGLCD_A0 27 //#define DOGLCD_A0 27
//#define DOGLCD_CS 25 //#define DOGLCD_CS 25
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
// not connected to a pin // not connected to a pin
//#define LCD_BACKLIGHT_PIN 57 // backlight LED on A11/D? (Mega/Due:65 - AGCM4:57) //#define LCD_BACKLIGHT_PIN 57 // backlight LED on A11/D? (Mega/Due:65 - AGCM4:57)
//#define BTN_EN1 31 //#define BTN_EN1 31
//#define BTN_EN2 33 //#define BTN_EN2 33
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(FYSETC_MINI_12864) #elif ENABLED(FYSETC_MINI_12864)
// From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8 // From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
@ -518,12 +515,6 @@
//#define DOGLCD_A0 44 //#define DOGLCD_A0 44
//#define DOGLCD_CS 58 // Mega/Due:66 - AGCM4:58 //#define DOGLCD_CS 58 // Mega/Due:66 - AGCM4:58
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
//#define BTN_EN1 40 //#define BTN_EN1 40
//#define BTN_EN2 55 // Mega/Due:63 - AGCM4:55 //#define BTN_EN2 55 // Mega/Due:63 - AGCM4:55
//#define BTN_ENC 72 // Mega/Due:59 - AGCM4:72 //#define BTN_ENC 72 // Mega/Due:59 - AGCM4:72
@ -531,6 +522,8 @@
//#define SD_DETECT_PIN 49 //#define SD_DETECT_PIN 49
//#define KILL_PIN 56 // Mega/Due:64 - AGCM4:56 //#define KILL_PIN 56 // Mega/Due:64 - AGCM4:56
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ZONESTAR_LCD) #elif ENABLED(ZONESTAR_LCD)
// TO TEST // TO TEST

View File

@ -207,11 +207,7 @@
#endif #endif
// Uncomment screen orientation //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
//#define LCD_SCREEN_ROT_0
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards #elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards

View File

@ -178,7 +178,6 @@
// Pins for DOGM SPI LCD Support // Pins for DOGM SPI LCD Support
#define DOGLCD_A0 PC12 // 44 #define DOGLCD_A0 PC12 // 44
#define DOGLCD_CS PC13 // 45 #define DOGLCD_CS PC13 // 45
#define LCD_SCREEN_ROT_180
#define BTN_EN1 PB6 // 22 #define BTN_EN1 PB6 // 22
#define BTN_EN2 PA7 // 7 #define BTN_EN2 PA7 // 7
@ -192,6 +191,8 @@
#define STAT_LED_RED_PIN PC0 // 32 #define STAT_LED_RED_PIN PC0 // 32
#define STAT_LED_BLUE_PIN PC3 // 35 #define STAT_LED_BLUE_PIN PC3 // 35
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define BTN_EN1 PC3 // 35 #define BTN_EN1 PC3 // 35
#define BTN_EN2 PC5 // 37 #define BTN_EN2 PC5 // 37
@ -214,11 +215,7 @@
#define SDSS PD5 // 53 #define SDSS PD5 // 53
#define KILL_PIN PE0 // 64 #define KILL_PIN PE0 // 64
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
// The encoder and click button // The encoder and click button
#define BTN_EN1 PC8 // 40 #define BTN_EN1 PC8 // 40
#define BTN_EN2 PD15 // 63 #define BTN_EN2 PD15 // 63
@ -226,6 +223,8 @@
// not connected to a pin // not connected to a pin
#define SD_DETECT_PIN PD1 // 49 #define SD_DETECT_PIN PD1 // 49
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else #else
// Beeper on AUX-4 // Beeper on AUX-4

View File

@ -166,9 +166,7 @@
#endif #endif
//#define LCD_CONTRAST_INIT 190 //#define LCD_CONTRAST_INIT 190
//#define LCD_SCREEN_ROT_90 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#endif #endif

View File

@ -163,13 +163,11 @@
#define DOGLCD_CS EXP1_04_PIN #define DOGLCD_CS EXP1_04_PIN
#define DOGLCD_SCK EXP1_05_PIN #define DOGLCD_SCK EXP1_05_PIN
#define DOGLCD_MOSI EXP1_03_PIN #define DOGLCD_MOSI EXP1_03_PIN
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#if EITHER(FYSETC_MINI_12864, U8GLIB_ST7920) #if EITHER(FYSETC_MINI_12864, U8GLIB_ST7920)
#define FORCE_SOFT_SPI #define FORCE_SOFT_SPI
#endif #endif
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#endif #endif
#define LCD_PINS_RS EXP1_04_PIN // CS -- SOFT SPI for ENDER3 LCD #define LCD_PINS_RS EXP1_04_PIN // CS -- SOFT SPI for ENDER3 LCD

View File

@ -326,7 +326,7 @@
#if SD_CONNECTION_IS(ONBOARD) #if SD_CONNECTION_IS(ONBOARD)
#define FORCE_SOFT_SPI #define FORCE_SOFT_SPI
#endif #endif
//#define LCD_SCREEN_ROT_180 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else // !MKS_MINI_12864 #else // !MKS_MINI_12864

View File

@ -207,7 +207,7 @@
#define DOGLCD_SCK EXP2_09_PIN #define DOGLCD_SCK EXP2_09_PIN
#define FORCE_SOFT_SPI #define FORCE_SOFT_SPI
#define SOFTWARE_SPI #define SOFTWARE_SPI
//#define LCD_SCREEN_ROT_180 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else #else

View File

@ -352,7 +352,7 @@
#if SD_CONNECTION_IS(ONBOARD) #if SD_CONNECTION_IS(ONBOARD)
#define FORCE_SOFT_SPI #define FORCE_SOFT_SPI
#endif #endif
//#define LCD_SCREEN_ROT_180 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else // !MKS_MINI_12864 #else // !MKS_MINI_12864

View File

@ -363,7 +363,7 @@
#if SD_CONNECTION_IS(ONBOARD) #if SD_CONNECTION_IS(ONBOARD)
#define FORCE_SOFT_SPI #define FORCE_SOFT_SPI
#endif #endif
//#define LCD_SCREEN_ROT_180 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else #else

View File

@ -349,7 +349,7 @@
#if SD_CONNECTION_IS(ONBOARD) #if SD_CONNECTION_IS(ONBOARD)
#define FORCE_SOFT_SPI #define FORCE_SOFT_SPI
#endif #endif
//#define LCD_SCREEN_ROT_180 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else // !MKS_MINI_12864 #else // !MKS_MINI_12864

View File

@ -135,7 +135,6 @@
#define DOGLCD_A0 40 // F2 JP2-2 #define DOGLCD_A0 40 // F2 JP2-2
#define DOGLCD_CS 41 // F3 JP2-4 #define DOGLCD_CS 41 // F3 JP2-4
#define LCD_SCREEN_ROT_180
#define BTN_EN1 2 // D2 TX1 JP2-5 #define BTN_EN1 2 // D2 TX1 JP2-5
#define BTN_EN2 3 // D3 RX1 JP2-7 #define BTN_EN2 3 // D3 RX1 JP2-7
@ -146,6 +145,8 @@
#define STAT_LED_RED_PIN 12 // C2 JP11-14 #define STAT_LED_RED_PIN 12 // C2 JP11-14
#define STAT_LED_BLUE_PIN 10 // C0 JP11-12 #define STAT_LED_BLUE_PIN 10 // C0 JP11-12
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(LCD_I2C_PANELOLU2) #elif ENABLED(LCD_I2C_PANELOLU2)
#define BTN_EN1 3 // D3 RX1 JP2-7 #define BTN_EN1 3 // D3 RX1 JP2-7

View File

@ -212,7 +212,6 @@
#define BEEPER_PIN 8 // E0 JP11-10 #define BEEPER_PIN 8 // E0 JP11-10
#define DOGLCD_A0 40 // F2 JP2-2 #define DOGLCD_A0 40 // F2 JP2-2
#define DOGLCD_CS 41 // F3 JP2-4 #define DOGLCD_CS 41 // F3 JP2-4
#define LCD_SCREEN_ROT_180
#define BTN_EN1 2 // D2 TX1 JP2-5 #define BTN_EN1 2 // D2 TX1 JP2-5
#define BTN_EN2 3 // D3 RX1 JP2-7 #define BTN_EN2 3 // D3 RX1 JP2-7
@ -223,6 +222,8 @@
#define STAT_LED_RED_PIN 12 // C2 JP11-14 #define STAT_LED_RED_PIN 12 // C2 JP11-14
#define STAT_LED_BLUE_PIN 10 // C0 JP11-12 #define STAT_LED_BLUE_PIN 10 // C0 JP11-12
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(MINIPANEL) #elif ENABLED(MINIPANEL)
#if DISABLED(USE_INTERNAL_SD) #if DISABLED(USE_INTERNAL_SD)