-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct readme, changelog and added changes for double cutter #210 Variants added to do two builds
- Loading branch information
Rob
committed
Sep 19, 2021
1 parent
d2c2000
commit 1510964
Showing
10 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import os | ||
import shutil | ||
Import("env") | ||
|
||
my_flags = env.ParseFlags(env['BUILD_FLAGS']) | ||
defines = {k: v for (k, v) in my_flags.get("CPPDEFINES")} | ||
|
||
shutil.copyfile(os.path.join(os.getcwd(), "src/variants/{0}.h".format(defines.get('CONFIG'))), os.path.join(os.getcwd(), 'src/config_tzb.h')), | ||
|
||
env.Replace(PROGNAME="TZB-{0}-{1}-BN{2}".format(defines.get('CONFIG'), defines.get('VERSION'), defines.get('BN'))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ | |
/.vs/MM-control-01/v14/.suo | ||
/main.cpp~RFdf1346e.TMP | ||
/__vm/.MM-control-01.vsarduino.h | ||
/src/config_tzb.h | ||
Doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
[platformio] | ||
src_dir = . | ||
lib_dir = .piolib | ||
libdeps_dir = .piolibdeps | ||
[common_env_data] | ||
build_flags = | ||
-D BN=373 | ||
-D VERSION=3.3.0 | ||
|
||
[env:mmu] | ||
[env:MMU2S] | ||
platform = atmelavr | ||
extra_scripts = pre:.build/pre_build_script.py | ||
board = prusa_mm_control | ||
framework = arduino | ||
board = leonardo | ||
src_filter = +<*> -<variants> | ||
build_flags = ${common_env_data.build_flags} | ||
-D CONFIG=MMU2S | ||
|
||
[env:MMU2S-DoubleCutter] | ||
platform = atmelavr | ||
extra_scripts = pre:.build/pre_build_script.py | ||
board = prusa_mm_control | ||
framework = arduino | ||
src_filter = +<*> -<variants> | ||
build_flags = ${common_env_data.build_flags} | ||
-D CONFIG=MMU2S-DoubleCutter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define doublecutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define cutter |