Closed htaxil closed 4 years ago
Looks like no one has tried this combination of controller and LCD before.
I don't have this LCD either, but can make an educated guess.
Try this new Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h (https://github.com/MarlinFirmware/Marlin/files/4265054/pins_RAMPS_RE_ARM.zip)
I use that OLED display (SSD1306) with MKS_SGEN_L board. The pins file for your board does not currently support that display. Take a look at the pins file for board MKS_SGEN_L (also LPC1768 processor). You might also want to try changing display to MKS_12864OLED_SSD1306 instead in your configuration.h file (should be compatible with SH1106 display controller), as the board pins files are not setup for that display controller.
Try this new Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h (https://github.com/MarlinFirmware/Marlin/files/4265054/pins_RAMPS_RE_ARM.zip)
Thanks @ellensp , now the compilation is processing well. But unfortunately, the display remains off...
try changing display to MKS_12864OLED_SSD1306 instead in your configuration.h file
Thanks @borland1 , compilation fails whether I choose MKS_12864OLED or MKS_12864OLED_SSD1306. Compilation proceeds correctly in both cases if I put the pins_RAMPS_RE_ARM.h file provided by @ellensp.
But unfortunately, despite that, the display remains hopelessly black for the moment.
Your display module uses SPI pinouts at ESP1 and ESP2, so you need to check your controller board's circuit diagram to match up the OLEDdisplay/RotaryEncoder/SD-Card/Buzzer pinouts with the controller board's SPI pins at ESP1 and ESP2 (assuming you have a RAMPS-FD LCD panel adapter board). You will need to get that from the manufacturer's circuit diagram which should be posted somewhere on the internet.
Once you have that configured correctly, your display should work. You can then try both MKS_12864 and MKS_12864OLED_SSD1306 in configuration.h file to see which one works best.
Well since I can find no pin documentation for the LCD, but borland1 says it works on a MKS_SGEN_L I created this conversion document lcd_pinout_info.txt From this is made some adjustment to the re-arm pins file. pins_RAMPS_RE_ARM.h.txt
NB you must enable #define SDSUPPORT in Configuration.h and set #define SDCARD_CONNECTION LCD in Configuration_adv.h to force it to use the SPI bus on the LCD
So give this new pins_RAMPS_RE_ARM.h file a go. (make sure to remove the .txt file extention) NB I am presuming your using a RAMP LCD converter on your Re-ARM.
on mks_sgen_l /**
EXP1 _____
BEEPER_PIN 1.31 | · · | 1.30 BTN_ENC
DOGLCD_MOSI 0.18 | · · | 0.16 DOGLCD_CS
DOGLCD_SCK 0.15 | · · | 0.17 DOGLCD_A0
DOGLCD_RS 1.0 | · · | 1.22
GND | · · | 5V
EXP2 _____
MISO_PIN (SD-card) 0.8 | · · | 0.7 SCK_PIN (SD-card)
BTN_EN1 3.25 | · · | 0.28 SS_PIN(SD_card)
BTN_EN2 3.26 | · · | 1.20 MOSI_PIN (SD-card}
SD_DETECT_PIN 0.27 | · · | RST
GND | · · | NC
Hi all, @ellensp I have used your pins_RAMPS_RE_ARM.h, #define SDSUPPORT is enable in Configuration.h, #define SDCARD_CONNECTION LCD is set in Configuration_adv.h. for sure i use a RAMP LCD converter
But the display remains turned off. Things happening when I use the button, cause I hear a beep when I push on it, and I get errors on repetier-host when I turn it (Error:!! KILL caused by KILL button/pin). I also get this error : echo : SD init fail.
This is my display : https://reprap.org/wiki/MKS_12864OLED
I have tried to configure and wire a REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER, everything works well.
Your Full Graphic Smart Controller display uses parallel data lines. The data lines for the MKS_12864OLED are serial (SPI). ellensp got most of the pin mapping correct, but missed the A0 pin. My previous post shows the EXP1 and EXP2 pin mapping for this SPI display used with MKS_SGEN_L board. That should help with completing the pin mapping for your RE_ARM board.
That pin on RE-ARM is NC (not connected) As noted in https://github.com/MarlinFirmware/Marlin/files/4271281/lcd_pinout_info.txt and
https://reprap.org/wiki/File:Re-ARM_LCD_adapter.jpg
I questioned in my doc if it was used or not... It seems like it is so you will need a custom cable.
The A0 pin corresponds to D/C pin on the display module. When the display component of the display module is operated in SPI mode, the A0 pin must be pulled low to ground in software. That could also be done in hardware by using a jumper wire to pull A0 pin to ground. Then map the A0 pin in firmware to some other unused pin.
@htaxil is the issue gone?
Lack of Activity This issue is being closed due to lack of activity. If you have solved the issue, please let us know how you solved it. If you haven't, please tell us what else you've tried in the meantime, and possibly this issue will be reopened.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Bug Description
I get this compilation error :
My Configurations
Marlin 2.0.4.4 Mainboard : Re-ARM Controller for RAMPS RAMPS 1.5 Display : MKS_12864OLED
MyMarlinConfiguration.zip
Steps to Reproduce
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Additional Information