bigtreetech / MINI-12864

BGTHREETECH MINI 12864 V1.0
54 stars 5 forks source link

BGTHREETECH-MINI-12864-V1.0 doesn't work with MKS Gen L V2.1 on Marlin 2 #5

Open romass opened 2 years ago

romass commented 2 years ago

Good Day,

I have a problem with connecting this LCD to my MKS Gen L V2.1 on Marlin 2.0.9.1. LCD lights up, but no visible text appears. EXP1 wire inverted (if it wasn't nothing would have appeared). Any help would be appreciated.

Board: MKS Gen L V2.1 Firmware: Marlin 2.0.9.1 LCD: BGTHREETECH-MINI-12864-V1.0

configs: https://github.com/romass/3D-Printing/tree/main/MKS_gen_L_V21_Fysetc%20Mini%2012864%20V2.1%20Marlin%202

MarkPugner79 commented 2 years ago

@romass Good news just did a similar build if you didn't figure it out. The connector body is flipped on the MKS Gen L V2.1 (or on the screen depending on how you want to look at it) I cut notches on my serial connector on the screen so I could plug them in the other way. The red pin should be pin 1 which should be ground. After doing that my screen worked fine after enabling it in the marlin config and setting the board to BOARD_MKS_GEN_L_V21, setting the screen to FYSETC_MINI_12864_2_1 and enabling NEOPIXEL_LED.

For reference board: https://github.com/makerbase-mks/MKS-GEN_L/blob/master/hardware/MKS%20Gen_L%20V2.1_001/MKS%20GEN_L%20V2.1_001%20PIN.pdf

Screen: https://github.com/bigtreetech/BGTHREETECH-MINI-12864-V1.0/blob/master/Hardware/BIGTREETECH%20MINI12864%20Interface.pdf

Notice the pinout of EXP1 and 2 and where the ground pins are.

romass commented 2 years ago

Nice! Will try, but I've already swapped one of the connectors 180 degree and at that time it just switched on, but still showed nothing.

radek8 commented 2 years ago

If the display just lights up and shows nothing, try this: In the file: Marlin\src\lcd\dogm\marlinui_DOGM.cpp change parameter: void MarlinUI::_set_contrast() { u8g.setContrast(contrast); } change to: void MarlinUI::_set_contrast() { u8g.setContrast(255); }

radek8 commented 2 years ago

@romass The setting of your NEOPIXEL parameters does not correspond to the recommendation in the display manual.

image