2020-08-06 15:15:19 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Build tests for MKS Robin nano
|
|
|
|
# (STM32F1 genericSTM32F103VE)
|
|
|
|
#
|
|
|
|
|
|
|
|
# exit on first failure
|
|
|
|
set -e
|
|
|
|
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
|
|
|
# MKS Robin nano v1.2 Emulated DOGM FSMC
|
|
|
|
#
|
2020-08-06 15:15:19 +02:00
|
|
|
use_example_configs Mks/Robin
|
|
|
|
opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO
|
2020-11-18 03:04:28 +01:00
|
|
|
exec_test $1 $2 "MKS Robin nano v1.2 Emulated DOGM FSMC" "$3"
|
2020-08-06 15:15:19 +02:00
|
|
|
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
2021-09-02 02:29:20 +02:00
|
|
|
# MKS Robin nano v2 Emulated DOGM SPI
|
|
|
|
# (Robin nano v2 has no FSMC interface)
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
2020-08-06 15:15:19 +02:00
|
|
|
use_example_configs Mks/Robin
|
|
|
|
opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
|
2020-10-15 10:00:27 +02:00
|
|
|
opt_disable TFT_INTERFACE_FSMC
|
2021-07-13 02:17:28 +02:00
|
|
|
opt_enable TFT_INTERFACE_SPI MKS_WIFI_MODULE
|
2021-07-21 23:31:11 +02:00
|
|
|
opt_add MKS_TEST
|
2021-09-02 02:29:20 +02:00
|
|
|
exec_test $1 $2 "MKS Robin nano v2 Emulated DOGM SPI, MKS_WIFI_MODULE" "$3"
|
2020-08-06 15:15:19 +02:00
|
|
|
|
2021-06-02 08:42:15 +02:00
|
|
|
#
|
|
|
|
# MKS Robin nano v1.2 LVGL FSMC
|
|
|
|
#
|
|
|
|
# use_example_configs Mks/Robin
|
|
|
|
# opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO
|
|
|
|
# opt_disable TFT_CLASSIC_UI TFT_COLOR_UI TOUCH_SCREEN TFT_RES_320x240
|
|
|
|
# opt_enable TFT_LVGL_UI TFT_RES_480x320
|
|
|
|
# exec_test $1 $2 "MKS Robin nano v1.2 LVGL FSMC" "$3"
|
|
|
|
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
2021-09-02 02:29:20 +02:00
|
|
|
# MKS Robin nano v2 LVGL SPI
|
|
|
|
# (Robin nano v2 has no FSMC interface)
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
2021-06-02 08:42:15 +02:00
|
|
|
# use_example_configs Mks/Robin
|
|
|
|
# opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
|
|
|
|
# opt_disable TFT_INTERFACE_FSMC TFT_COLOR_UI TOUCH_SCREEN TFT_RES_320x240
|
|
|
|
# opt_enable TFT_INTERFACE_SPI TFT_LVGL_UI TFT_RES_480x320
|
2021-09-02 02:29:20 +02:00
|
|
|
# exec_test $1 $2 "MKS Robin nano v2 LVGL SPI" "$3"
|
2020-08-06 15:15:19 +02:00
|
|
|
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
2021-09-02 02:29:20 +02:00
|
|
|
# MKS Robin nano v2 New Color UI 480x320 SPI
|
|
|
|
# (Robin nano v2 has no FSMC interface)
|
2020-10-15 10:00:27 +02:00
|
|
|
#
|
2020-08-24 20:23:32 +02:00
|
|
|
use_example_configs Mks/Robin
|
|
|
|
opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
|
2020-10-15 10:00:27 +02:00
|
|
|
opt_disable TFT_INTERFACE_FSMC TFT_RES_320x240
|
|
|
|
opt_enable TFT_INTERFACE_SPI TFT_RES_480x320
|
2021-09-02 02:29:20 +02:00
|
|
|
exec_test $1 $2 "MKS Robin nano v2 with New Color UI 480x320 SPI" "$3"
|
2020-08-24 20:23:32 +02:00
|
|
|
|
2020-10-24 06:37:45 +02:00
|
|
|
#
|
2021-09-02 02:29:20 +02:00
|
|
|
# MKS Robin nano v2 LVGL SPI + TMC
|
|
|
|
# (Robin nano v2 has no FSMC interface)
|
2020-10-24 06:37:45 +02:00
|
|
|
#
|
2021-09-02 02:29:20 +02:00
|
|
|
use_example_configs Mks/Robin
|
|
|
|
opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2 X_DRIVER_TYPE TMC2209 Y_DRIVER_TYPE TMC2209
|
|
|
|
opt_disable TFT_INTERFACE_FSMC TFT_COLOR_UI TOUCH_SCREEN TFT_RES_320x240
|
|
|
|
opt_enable TFT_INTERFACE_SPI TFT_LVGL_UI TFT_RES_480x320
|
|
|
|
exec_test $1 $2 "MKS Robin nano v2 LVGL SPI + TMC" "$3"
|
2020-11-18 03:07:34 +01:00
|
|
|
|
2020-08-06 15:15:19 +02:00
|
|
|
# cleanup
|
|
|
|
restore_configs
|