MKS TFT(3d打印触屏屏幕)如何定制客制化图标及logo制作说明
以TFT7.0為例:
MKS TFT7.0使用手冊第27頁有介紹如何定制圖標及logo制作說明
https://raw.githubusercontent.com/lineuve/MKS-TFT/master/MKS-TFT7.0/MKS%20TFT7.0%20V1.0%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C.pdf
主要用到Img2Lcd軟件進行圖像更換,
開機logo,對應的bmp_logo.bin
保存的時候要保存為bmp_logo.bin,并放到mks_pic文件夾下:
?
?
MKS TFT3.5,觸摸屏的開源源程序:
https://github.com/makerbase-mks/MKS-TFT35-Firmware
?
以下大致的推測原理:
TFT屏幕用的是ARM STM32F4的主控控制,連接主板只通過AUX-1跟主板通訊,通過串口uart的rx,tx跟主板通訊。TF卡內或usb內的g-code也要通過主控STM32F4來協同,通過uart協議跟主板的Marlin通訊。
TFT屏幕的STM32F4直接控制并繪圖tft屏幕的圖像,控制不同的翻頁更新,回應對應的觸屏操作,把他們統一編寫成g-code通訊格式跟主板的Marlin通訊,
當打印U盤或TF卡的g-code文件,STM32F4先讀取U盤或TF卡的g-code文件,再通過uart協議跟主板的Marlin通訊
?
?
?
MKS TFT3.5最新編譯好的bin文件TFT35_V1.0.8 Release file
https://github.com/makerbase-mks/MKS-TFT35-Firmware/blob/master/Release%20files/TFT35_V1.0.8%20Release%20file.zip
只要把壓縮解壓到u盤,插上tft屏幕的usb或sd卡接口,重新上電即可更新最新的固件和操作界面。
由文件就結構可以看出:mkstft35.bin和mkswifi.bin都是由VSCode編譯出來。
?
對于近年開發robin系列板配合robin tft屏幕配合
注意robin tft屏上是沒有任何stm32的主控。robin主板就搭載了stm32主控,這類板基本都支持觸屏,它們的源程序都要帶ui面板控制程序。robin主板stm32直接繪畫出并控制
MKS Robin Nano is a powerful 32-bit 3D printer control board with STM32F103VET6
其中V1.2只能接robin 3.5寸tft屏幕。
而Nano V2.0和Nano V3.0則支持多種LCD
不過可見它們連接exp1和exp2接口
MKS Robin2 is a powerful 32-bit 3D printer control board with STM32F407ZET6
對于Robin1.x默認marlin設置也是robin tft屏幕
https://github.com/makerbase-mks/MKS-Robin/blob/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin/Marlin/Configuration.h
MKS Robin Nano V1.x build and update firmware
-
platformio.ini:
default_envs = mks_robin_nano35
-
Configuation.h:
#define SERIAL_PORT 3
#define MKS_ROBIN_TFT35
#define MOTHERBOARD BOARD_MKS_ROBIN_NANO
#define TFT_LVGL_UI
#define TOUCH_SCREEN
- Enter the .pio\build\mks_robin_nano35 directory, copy the assets folder and Robin_nano35.bin to the sd card
- Insert SD card to the motherboard, and you can see the update interface after power on.
?
MKS Robin Nano V2.x build and update firmware
-
platformio.ini:
default_envs = mks_robin_nano35
-
Configuation.h:
#define SERIAL_PORT 3
#define MKS_TS35_V2_0
#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
#define TFT_LVGL_UI
#define TOUCH_SCREEN
- Enter the .pio\build\mks_robin_nano35 directory, copy the assets folder and Robin_nano35.bin to the sd card
- Insert SD card is to the motherboard, and you can see the update interface after power on.
?
MKS Robin Nano V3.x build and update firmware
-
platformio.ini:
default_envs = mks_robin_nano_v3_usb_flash_drive_msc
-
Configuation.h:
#define SERIAL_PORT -1
#define MKS_TS35_V2_0
#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V3
#define TFT_LVGL_UI
#define TOUCH_SCREEN -
Configuation_adv.h:
Now you can either use the TF card or USB disk, use TF card:
// #define USB_FLASH_DRIVE_SUPPORT
Use USB disk:
#define USB_FLASH_DRIVE_SUPPORT
- Enter the .pio\build\mks_robin_nano35 directory, copy the assets folder and Robin_nano_v3.bin to the sd card or usb disk
- Insert sdcard or usb disk to the motherboard, and you can see the update interface after power on.
- Open the example configuration file.
- Modify the parameters, replace configuration.h and configuration_adv.h in the Marlin path of the source code.
- Compile the firmware.
- We have prebuilt the robin nano v3 firmware for some type of printers and some extended usage.
?
MKS Robin Mini is a powerful 32-bit 3D printer control board with STM32F103VET6
官網已經不賣了
MKS Robin Lite3 is a powerful 32-bit 3D printer control board with STM32F103RCT6
官網已經不賣了
MKS Robin Pro is a powerful 32-bit 3D printer control board with STM32F103ZET6
可見對于Mks-Robin-Nano,v1.2支持3.5寸robin觸摸屏。都是通過主板的sd卡燒錄,燒錄時必須要有bin和font和pic文件夾一起在sd卡根目錄下,燒錄才能進行。
https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware
?
https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware/blob/master/config/MKS%20Robin%20nano%20v3.0/Config%20example%20for%20suport%20sd%20card/Config%20example%20for%20Ender3(4988)/Configuration.h
默認marlin設置是MKS 3.5寸robin tft屏幕
Mks-Robin-Nano之所以可以預覽圖像其實是切片的時候加入了圖片信息到g-code里頭。當讀取屏幕讀取g-code時,即可顯現并預覽圖像出來。要在cura切片加上插件plugin,Cura在切片時才會輸出帶模型圖片信息
同樣的MKS-TFT在2019年底更新后也有圖像預覽功能,其實都是切片的時候加入了圖片信息到g-code里頭。
plugin已經變成wifi命名插件,功能都是可以讓切片加入圖片預覽圖形信息
https://github.com/makerbase-mks/mks-wifi-plugin
About the gcode file preview
The images should be added to gcode file when slicing, and MKS has developed the plugin for Cura to make it.
?
?
?
可以用MKS-TOOL去客制化robin屏幕ui界面
https://github.com/makerbase-mks/MKS-TOOL
MKS-tool網頁客制化robin屏幕ui界面
https://baizhongyun.cn/home/mkstoolview
VSCode如何編譯出marlin的bin文件
https://marlinfw.org/docs/basics/install_platformio_vscode.html
?
MKS SBASE is a powerful 32-bit 3D printer control board with LPC1768.
MKS SBASE如何更新板載固件。LPC1768引導從sd卡上導入bin,并加載到它的flash里頭
https://github.com/makerbase-mks/MKS-SBASE/tree/master/Firmware
https://github.com/makerbase-mks/MKS-SBASE/tree/master/English/firmware
MKS-Robin-lite3如何更新板載固件
https://github.com/makerbase-mks/MKS-Robin-lite3/tree/master/firmware/MKS%20Robin%20lite3-Marlin-bugfix-2.0.x/mks_bin
總結
以上是生活随笔為你收集整理的MKS TFT(3d打印触屏屏幕)如何定制客制化图标及logo制作说明的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mobile Inverted Resi
- 下一篇: 2018最炙手可热的行业--大数据就业方