Please note: the forum is closed.
No new user registrations are accepted. For more info, please click here.
No new user registrations are accepted. For more info, please click here.
LCD Firmware Explanation
zarnold16
Posts: 1Member
I am trying to get some help understanding the LCD firmware config file. I have been slowly adding my own extra features to my A5 and would like to add some custom menu commands to the LCD. How does it work? I'm confused with adding the icons and extra commands.
Comments
1. As far as I know, you must flash the entire LCD firmware each time, in order to update the LCD firmware configuration.
2. After each flash, the LCD firmware will rename all the files, so keep a copy of the files on your computer before you flash things.
3. A custom button is very simple, it is just a gcode command that is executed and sent from the LCD to the main motherboard,
Onto the files...
The following link is the OEM firmware files for the A5. There are three versions in there, and the last two have LCD firmware versions as well.
Each firmware has 3 files:
- An mks_pic folder, which contains all the graphics for the firmware, stored in .bin files.
- An MKS_config.txt file, which is the main configuration file.
- An mkstft28.bin, which is the core firmware file.
The Dec 18th firmware has the LCD firmware configuration in english, while the january one has the LCD configuration in chinese.
In the configuration file there are several main sections:
- Printer type setting
- Advanced Function Option
- Filament Change Function
- Leveling Function
- WIFI Function
- Function Customization
- Display Customization
The last two sections are relevant for making custom buttons.
There are three main places where custom buttons can be added to:
- the Main "More" section, accessible from the main home screen
(moreitem_buttonX_cmd etc...)
- the Printing "More" section, accessible during active printing
(morefuncX_cmd etc...)
Main more buttons
# Start Mesh Bed Levelling
>moreitem_button1_cmd:G29 S1;
# Next Point Mesh Bed Levelling
>moreitem_button2_cmd:G29 S2;
# Mesh Up (switch to relative coordinates, move up, switch to absolute coordinates)
>moreitem_button3_cmd:G91; G1 Z0.025; G90;
# Mesh Down (switch to relative coordinates, move down, switch to absolute coordinates)
>moreitem_button4_cmd:G91; G1 Z-0.025; G90;
# Save EEPROM
>moreitem_button5_cmd:M500;
# Disable Stepper Motors
>moreitem_button6_cmd:M18;
# Factory default EEPROM (load defaults, save eeprom)
>moreitem_button7_cmd: M502; M500;
Printing More Buttons
#babystep up
>morefunc1_cmd:M290 Z-0.025;
#babystep down
>morefunc2_cmd:M290 Z0.025;
#save EEPROM
>morefunc3_cmd:M500;
http://marlinfw.org/docs/gcode/G000-G001.html
https://jgmakerforum.com/discussion/28/mks-lcd-flashing-firmware-modifications-and-logo-icon-customisation#latest
Howdy, Stranger!
RegisterIt looks like you've been lurking for a while.
If you register, we will remember what you have read and notify you about new comments. You will also be able to participate in discussions.
So if you'd like to get involved, register for an account, it'll only take you a minute!