Problem LCD 2004 and KEYPAD RepRap and Marlin 2.x
September 04, 2024 05:48AM
HI, I have Megatronics 3.1, LCD 2004 and Keypad RepRap and upgrade Marlin 1.x (perfect working) to Marlin 2.1.x (last version) there are a lot of problems.

In the Configuration.h I enable this lines

#define ULTRA_LCD
#define REPRAPWORLD_KEYPAD
#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0

Now,
Rotary encoder doesn't work
Display works only with 2 lines
The buttons are in confusion

Can I have any help about?
Re: Problem LCD 2004 and KEYPAD RepRap and Marlin 2.x
September 04, 2024 06:24AM
For size the default is 16x2 Add these defines.

#define LCD_WIDTH 20
#define LCD_HEIGHT 4

the rest im confused about...

You enabled keys for an encoder?
Does it have both?

Perhaps a picture would help.
Re: Problem LCD 2004 and KEYPAD RepRap and Marlin 2.x
September 04, 2024 07:55AM
Hi Dust, thanks for your fast answer.
I have new information for you before I reply you about your question.

if I active define ULTIPANEL and desabledefine ULTRA_LCD, the display works
In the old Marlin there was code to active ULTIPANEL when it was define ULTRA_LCD
and inn't necessary to set manually the WIDTH and HEIGHT
1th pont for me is OK

The KEYPAD have the wong PIN definition.
I change the code in the buttons.h and now the KEYPAD has the correct botton position, when click the MIDDLE go in Home position, when click the UP move asses Y in poistive, ect.
2th point is OK

Now I have the problem of Encoder positioned in the original KEYPAD RepRap. It doesn't work, nothing.
You wrote "enable keys an encoder". This operation is different of the Marlin 1 version? because I never modify lines of code about encoder first, and if Yes, where are the line to actives?

Thanks again

Edited 1 time(s). Last edit at 09/05/2024 11:31AM by Dario.
Sorry, only registered users may post in this forum.

Click here to login