Has anyone of you added new function to your Marlin firmware?

Has anyone of you added new function to your Marlin firmware?
I’m willing to add one click function to lower buildplate in PREPARE_MENU.

from my understanding I have to define txt message in ‘language_en.h’ and add Gcode function in ultralcd.cpp

I’m using Marlin 1.1.8 with Rambo mini board and full graphic smart controller

my draft for adding this function:


language_en.h

#ifndef MSG_LOWER_B_PLATE
#define MSG_LOWER_B_PLATE UxGT(“Lower buildplate”)
#endif
________
ultralcd.cpp

  • “Prepare” submenu items
    //LOWER BUILDPLATE 100mm
    MENU ITEM(gcode, MSG_LOWER_B_PLATE, PSTR(“G1 Z100”))

I’m receiving error “‘MSG_LOWER_B_PLATE’ was not declared in this scope”

Solved. I defined MSG_LOWER_B_PLATE in non main section.
Copied it in different place and and compiled just fine.

And it works as well.