Skip to content

Commit

Permalink
Update platformio.ini
Browse files Browse the repository at this point in the history
- Pin ststm32 to 8.1.x versions for this branch
- Update build targets, add bed targets for melzi board
  • Loading branch information
kad committed Dec 20, 2020
1 parent 218fce3 commit f57311b
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,21 @@ include_dir = Marlin

# KAD: supported environments, choose that you need:
#
# Stock, Melzi clone board, 12V PSU
#
# anycubic_mega_zero_mbl Highly recommended configuration. Manual Mesh Bed Leveling
# anycubic_mega_zero Simple menus, no advanced bed leveling
# anycubic_mega_zero_bl_zmin Automatic bed leveling, BLTouch is connected to PIN27 (Servo) and Z min stop
# anycubic_mega_zero_bl_a2 Automatic bed leveling, BLTouch is connected to PIN27 (Servo) and EXT-A2
# anycubic_mega_zero_bl_zmin Automatic bed leveling, BLTouch is connected to PIN27 (Servo) and Z min stop
# anycubic_mega_zero_bl_zmin_fs Same as anycubic_mega_zero_bl_zmin, With simple filament sensor connected to EXT-A2. Watch out for pinout!
# anycubic_mega_zero_bl_zmin_sfs Same as anycubic_mega_zero_bl_zmin, With BTT Smart filament sensor connected to EXT-A2. Watch out for pinout!
# anycubic_mega_zero_bed Same as anycubic_mega_zero, with heated bed
# anycubic_mega_zero_bed_mbl Same as anycubic_mega_zero_mbl, with heated bed
# anycubic_mega_zero_bed_bl_a2 Same as anycubic_mega_zero_bl_a2, with heated bed
# anycubic_mega_zero_bed_bl_zmin Same as anycubic_mega_zero_bl_zmin, with heated bed
#
# BigTreeTech SKR mini MZ 1.0 or SKR mini E3 2.0, 12V PSU.
#
# anycubic_mega_zero_btt SKR mini E3/MZ, Manual Mesh Bed Leveling
# anycubic_mega_zero_btt_bl SKR mini E3/MZ, Automatic bed leveling, BLTouch is connected to PROBE port
# anycubic_mega_zero_btt_bl_zmin SKR mini E3/MZ, Automatic bed leveling, BLTouch is connected to PROBE port and Z min stop
Expand All @@ -41,7 +52,29 @@ include_dir = Marlin
#default_envs = anycubic_mega_zero_mbl

# All Anycubic Mega Zero configs
default_envs = anycubic_mega_zero, anycubic_mega_zero_mbl, anycubic_mega_zero_bl_a2, anycubic_mega_zero_bl_zmin, anycubic_mega_zero_btt, anycubic_mega_zero_btt_nano, anycubic_mega_zero_btt_bed, anycubic_mega_zero_btt_bl, anycubic_mega_zero_btt_bl_zmin, anycubic_mega_zero_btt_bed_bl, anycubic_mega_zero_btt_bed_bl_zmin, anycubic_mega_zero_btt_nano_bed, anycubic_mega_zero_btt_nano_bl, anycubic_mega_zero_btt_nano_bl_zmin, anycubic_mega_zero_btt_nano_bed_bl, anycubic_mega_zero_btt_nano_bed_bl_zmin, anycubic_mega_zero_bl_zmin_sfs, anycubic_mega_zero_bl_zmin_fs, anycubic_mega_zero_btt_nano_bl_e0fan
default_envs = anycubic_mega_zero
anycubic_mega_zero_mbl
anycubic_mega_zero_bl_a2
anycubic_mega_zero_bl_zmin
anycubic_mega_zero_bl_zmin_sfs
anycubic_mega_zero_bl_zmin_fs
anycubic_mega_zero_bed
anycubic_mega_zero_bed_mbl
anycubic_mega_zero_bed_bl_a2
anycubic_mega_zero_bed_bl_zmin
anycubic_mega_zero_btt
anycubic_mega_zero_btt_nano
anycubic_mega_zero_btt_bed
anycubic_mega_zero_btt_bl
anycubic_mega_zero_btt_bl_zmin
anycubic_mega_zero_btt_bed_bl
anycubic_mega_zero_btt_bed_bl_zmin
anycubic_mega_zero_btt_nano_bed
anycubic_mega_zero_btt_nano_bl
anycubic_mega_zero_btt_nano_bl_zmin
anycubic_mega_zero_btt_nano_bed_bl
anycubic_mega_zero_btt_nano_bed_bl_zmin
anycubic_mega_zero_btt_nano_bl_e0fan

#
# The 'common' values are used for most Marlin builds
Expand Down Expand Up @@ -1442,6 +1475,23 @@ extends = env:anycubic_mega_zero_bl_a2
build_flags = ${env:anycubic_mega_zero_bl_a2.build_flags}
-DZ_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

#
# Anycubic Mega Zero Melzi clone, minimal config.
#
[env:anycubic_mega_zero_bed]
extends = env:anycubic_mega_zero
build_flags = ${env:anycubic_mega_zero.build_flags} -ffast-math
-DKAD_MELZI_BED

#
# Anycubic Mega Zero Melzi clone, standard config with Mesh Bed Leveling
#
[env:anycubic_mega_zero_bed_mbl]
extends = env:anycubic_mega_zero_mbl
build_flags = ${env:anycubic_mega_zero_mbl.build_flags}
-fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues -finline-limit=3
-DKAD_MELZI_BED

#
# Anycubic Mega Zero Melzi clone, BLTouch config, Heated BED
# PIN27 + EXT-A2 are used to connect probe.
Expand Down Expand Up @@ -1484,7 +1534,7 @@ build_flags = ${env:anycubic_mega_zero_bl_zmin.build_flags}
#
[env:anycubic_mega_zero_btt]
#platform = ${common_stm32f1.platform}
platform = ststm32
platform = ststm32@~8.1
board_build.core = maple
extends = env:STM32F103RC_btt
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
Expand Down

0 comments on commit f57311b

Please sign in to comment.