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