From bc46dcb3366a25680dca9306792e248c7e5759d2 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Sat, 10 Apr 2021 14:48:44 +0200 Subject: [PATCH] Add Support for MEGA X with new Anycubic 0.0.2 TFT (DGUS Clone). Use MEGA_X_DGUS to use this environment. --- i3_mega_envs.ini | 65 ++++++++++++++++++++++++++++++++++++++++++++++++ platformio.ini | 6 +++++ 2 files changed, 71 insertions(+) diff --git a/i3_mega_envs.ini b/i3_mega_envs.ini index b0d70515..a3661675 100755 --- a/i3_mega_envs.ini +++ b/i3_mega_envs.ini @@ -323,6 +323,71 @@ build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14_11 - build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_DGUS2_TFT -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON +# +# i3 Mega X (new TFT) +# +[env:MEGA_X_DGUS] +platform = atmelavr +board = megaatmega2560 +board_build.f_cpu = 16000000L +lib_deps = ${common.lib_deps} + TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip +src_filter = ${common.default_src_filter} + +build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14 -DKNUTWURST_MEGA_X -DKNUTWURST_DGUS2_TFT +build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_TMC -DKNUTWURST_BLTOUCH -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON + +[env:MEGA_X_DGUS_TMC] +platform = atmelavr +board = megaatmega2560 +board_build.f_cpu = 16000000L +lib_deps = ${common.lib_deps} + TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip +src_filter = ${common.default_src_filter} + +build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14 -DKNUTWURST_MEGA_X -DKNUTWURST_DGUS2_TFT -DKNUTWURST_TMC +build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_BLTOUCH -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON + +[env:MEGA_X_DGUS_BLT_10] +platform = atmelavr +board = megaatmega2560 +board_build.f_cpu = 16000000L +lib_deps = ${common.lib_deps} + TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip +src_filter = ${common.default_src_filter} + +build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14 -DKNUTWURST_MEGA_X -DKNUTWURST_DGUS2_TFT -DKNUTWURST_BLTOUCH +build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_TMC -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON + +[env:MEGA_X_DGUS_BLT_11] +platform = atmelavr +board = megaatmega2560 +board_build.f_cpu = 16000000L +lib_deps = ${common.lib_deps} + TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip +src_filter = ${common.default_src_filter} + +build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14_11 -DKNUTWURST_MEGA_X -DKNUTWURST_DGUS2_TFT -DKNUTWURST_BLTOUCH +build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_TMC -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON + +[env:MEGA_X_DGUS_TMC_BLT_10] +platform = atmelavr +board = megaatmega2560 +board_build.f_cpu = 16000000L +lib_deps = ${common.lib_deps} + TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip +src_filter = ${common.default_src_filter} + +build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14 -DKNUTWURST_MEGA_X -DKNUTWURST_DGUS2_TFT -DKNUTWURST_TMC -DKNUTWURST_BLTOUCH +build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON + +[env:MEGA_X_DGUS_TMC_BLT_11] +platform = atmelavr +board = megaatmega2560 +board_build.f_cpu = 16000000L +lib_deps = ${common.lib_deps} + TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip +src_filter = ${common.default_src_filter} + +build_flags = ${common.build_flags} -DMOTHERBOARD=BOARD_TRIGORILLA_14_11 -DKNUTWURST_MEGA_X -DKNUTWURST_DGUS2_TFT -DKNUTWURST_TMC -DKNUTWURST_BLTOUCH +build_unflags = -DKNUTWURST_MEGA -DKNUTWURST_MEGA_S -DKNUTWURST_MEGA_P -DKNUTWURST_ONE_Z_ENDSTOP -DKNUTWURST_CHIRON + + + # # i3 Mega P diff --git a/platformio.ini b/platformio.ini index 6a3aca9b..0a8abe9d 100755 --- a/platformio.ini +++ b/platformio.ini @@ -62,6 +62,12 @@ default_envs = MEGA_X_BLT_11 MEGA_X_TMC_BLT_10 MEGA_X_TMC_BLT_11 + MEGA_X_DGUS + MEGA_X_DGUS_TMC + MEGA_X_DGUS_BLT_10 + MEGA_X_DGUS_BLT_11 + MEGA_X_DGUS_TMC_BLT_10 + MEGA_X_DGUS_TMC_BLT_11 MEGA_P MEGA_P_TMC MEGA_P_BLT_10