✨ WYH L12864 LCD (Alfawise Ex8) (#22863)
This commit is contained in:
committed by
Scott Lahteine
parent
58a26fcaac
commit
0273a68587
@ -287,7 +287,7 @@
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
|
@ -279,7 +279,7 @@
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
|
@ -483,8 +483,8 @@
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 125
|
||||
#define BOARD_ST7920_DELAY_2 90
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
|
||||
|
@ -493,7 +493,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 120
|
||||
#define BOARD_ST7920_DELAY_2 80
|
||||
#define BOARD_ST7920_DELAY_3 580
|
||||
|
@ -454,6 +454,39 @@
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#elif ENABLED(WYH_L12864)
|
||||
|
||||
#error "CAUTION! WYH_L12864 requires wiring modifications. Comment out this line to continue."
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
* 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires.
|
||||
*
|
||||
* !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
|
||||
*
|
||||
* The WYH_L12864 connector plug:
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ______ ______
|
||||
* GND | 1 2 | 5V 5V | 1 2 | GND
|
||||
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
|
||||
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
|
||||
* SCK | 7 8 | BTN_ENC SCK | 7 8 | BTN_ENC
|
||||
* MOSI | 9 10 | MOSI | 9 10 |
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
#undef BEEPER_PIN
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 EXP1_06_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_08_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_07_PIN
|
||||
#define DOGLCD_MOSI EXP1_09_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
@ -500,7 +533,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#ifndef BOARD_ST7920_DELAY_1
|
||||
#define BOARD_ST7920_DELAY_1 125
|
||||
#endif
|
||||
|
@ -482,7 +482,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#ifndef BOARD_ST7920_DELAY_1
|
||||
#define BOARD_ST7920_DELAY_1 120
|
||||
#endif
|
||||
|
@ -305,7 +305,7 @@
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 715
|
||||
|
@ -245,7 +245,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
|
@ -314,7 +314,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 640
|
||||
|
@ -172,7 +172,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 640
|
||||
|
@ -183,7 +183,7 @@
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 715
|
||||
|
Reference in New Issue
Block a user