mks_robin_nano_v1v2_maple 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for MKS Robin nano with LibMaple STM32F1 HAL
  4. # (STM32F1 genericSTM32F103VE)
  5. #
  6. # exit on first failure
  7. set -e
  8. #
  9. # MKS Robin nano v1.2 Emulated DOGM FSMC
  10. #
  11. use_example_configs Mks/Robin
  12. opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO
  13. exec_test $1 $2 "MKS Robin nano v1.2 Emulated DOGM FSMC" "$3"
  14. #
  15. # MKS Robin v2 nano Emulated DOGM SPI
  16. # (Robin v2 nano has no FSMC interface)
  17. #
  18. use_example_configs Mks/Robin
  19. opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
  20. opt_disable TFT_INTERFACE_FSMC
  21. opt_enable TFT_INTERFACE_SPI
  22. exec_test $1 $2 "MKS Robin v2 nano Emulated DOGM SPI" "$3"
  23. #
  24. # MKS Robin v2 nano LVGL SPI
  25. # (Robin v2 nano has no FSMC interface)
  26. #
  27. use_example_configs Mks/Robin
  28. opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
  29. opt_disable TFT_INTERFACE_FSMC TFT_COLOR_UI TOUCH_SCREEN TFT_RES_320x240 SERIAL_PORT_2
  30. opt_enable TFT_INTERFACE_SPI TFT_LVGL_UI TFT_RES_480x320 MKS_WIFI_MODULE
  31. opt_add MKS_TEST
  32. exec_test $1 $2 "MKS Robin v2 nano LVGL SPI w/ WiFi" "$3"
  33. #
  34. # MKS Robin v2 nano New Color UI 480x320 SPI
  35. # (Robin v2 nano has no FSMC interface)
  36. #
  37. use_example_configs Mks/Robin
  38. opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2 TFT_ROTATION TFT_ROTATE_90
  39. opt_disable TFT_INTERFACE_FSMC
  40. opt_enable TFT_INTERFACE_SPI BINARY_FILE_TRANSFER
  41. exec_test $1 $2 "MKS Robin v2 nano New Color UI 240x320 SPI + BINARY_FILE_TRANSFER" "$3"
  42. #
  43. # MKS Robin v2 nano LVGL SPI + TMC
  44. # (Robin v2 nano has no FSMC interface)
  45. #
  46. use_example_configs Mks/Robin
  47. opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2 X_DRIVER_TYPE TMC2209 Y_DRIVER_TYPE TMC2209
  48. opt_disable TFT_INTERFACE_FSMC TFT_COLOR_UI TOUCH_SCREEN TFT_RES_320x240
  49. opt_enable TFT_INTERFACE_SPI TFT_LVGL_UI TFT_RES_480x320
  50. exec_test $1 $2 "MKS Robin v2 nano LVGL SPI + TMC" "$3"
  51. #
  52. # MKS Robin v2 nano New Color UI 480x320 SPI Without Touch Screen
  53. #
  54. use_example_configs Mks/Robin
  55. opt_set MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
  56. opt_disable TFT_INTERFACE_FSMC TFT_RES_320x240 TOUCH_SCREEN
  57. opt_enable TFT_INTERFACE_SPI TFT_RES_480x320 TFT_COLOR_UI
  58. exec_test $1 $2 "MKS Robin v2 nano New Color UI 480x320 SPI without TOUCH_SCREEN" "$3"
  59. # cleanup
  60. restore_configs