makerbase-mks / SGEN_L

MKS SGEN_L is a powerful 32-bit 3D printer control board with LPC1768. Support Marlin2.0, Smoothieware. Support MKS LCD12864B/MINI12864/LCD2004/12864 and MKS TFT Touch Screens. The motherboard integrates SPI / UART interface and works with MKS TMC2130/TMC2208 V2.0/TMC2209. It can be used after plugged in. No soldering or flying lead is required ...
https://es.aliexpress.com/item/33036918120.html?spm=a2g0o.store_home.slider_165457030.3
GNU General Public License v3.0
87 stars 61 forks source link

No Pin Assignments, For Display MKS_12864OLED_SSD1306 #11

Closed borland1 closed 4 years ago

borland1 commented 4 years ago

In Folder/File: Marlin/src/pins/pins_MKS_SGEN_L.h

MKS_12864OLED_SSD1306 display is not supported because there are no pin assignments for this display to be enabled in Configuration.h file.

File MKS_SGEN_L.h should be modified to add something like this..

if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)

    #define LCD_PINS_DC     P0.17   // Set as output on init
    #define LCD_PINS_RS      P1.00   // Pull low for 1s to init
    // DOGM SPI LCD Support
    #define DOGLCD_CS       P0.16
    #define DOGLCD_MOSI   P0.18
    #define DOGLCD_SCK     P0.15
    #define DOGLCD_A0       LCD_PINS_DC

    #define BEEPER_PIN      P1.31
    #define BTN_ENC         P1.30
#endif
borland1 commented 4 years ago

I submitted an Issue Report (#16142) on the main Marlin Firmware depository. They provided a working firmware.bin file based on my Configuration.h file. I was able to install the provided test firmware.bin file and confirm MKS_12864OLED_SSD1306 display functions (display, rotary encoder/push-button, and SD-Card read operation), thus verifying pin assignments for this display with MKS_SGEN_L motherboard. They should be submitting 'Pull Request' with fix soon. Marlin has formally released firmware Version 2.0.x. Recommend this MKS fork be updated with latest Marlin release.

makerbase-mks commented 4 years ago

MKS OLED12864 display function has been added and has been tested.