summaryrefslogtreecommitdiff
path: root/src/model_builder.py
diff options
context:
space:
mode:
authorJoshua Shreve <j.a.shreve@gmail.com>2021-07-12 21:04:37 -0400
committerJoshua Shreve <j.a.shreve@gmail.com>2021-07-12 21:04:37 -0400
commit34276fd65a74bf4a87d70f8650f6b3262384ef78 (patch)
tree2ed978ca01d57ab52f0c79495208ea398311a5f0 /src/model_builder.py
parent89b63be39ac151408b5e25a3ad06668d9a79c20d (diff)
Minor fixes for missing web on MINI thumb cluster. Added readme content and options for USB out only and no connector / controller features.
Diffstat (limited to 'src/model_builder.py')
-rw-r--r--src/model_builder.py22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/model_builder.py b/src/model_builder.py
index fd611ba..ef4824c 100644
--- a/src/model_builder.py
+++ b/src/model_builder.py
@@ -70,7 +70,7 @@ configurations = [
'save_dir': '6x6_CtrlTray',
'nrows': 6, # key rows
'ncols': 6, # key columns
- 'oled_mount_type': 'CLIP',
+ 'oled_mount_type': None,
'controller_mount_type': 'EXTERNAL',
},
{
@@ -79,7 +79,7 @@ configurations = [
'nrows': 4, # key rows
'ncols': 5, # key columns
'oled_mount_type': None,
- 'controller_mount_type': 'EXTERNAL',
+ 'controller_mount_type': 'RJ9_USB_WALL',
},
{
'config_name': '4x6_Basic',
@@ -107,20 +107,28 @@ configurations = [
}
]
-init = True
+
+# ENGINES = ['solid', 'cadquery']
+ENGINES = ['cadquery']
+
+init = True
for config in configurations:
shape_config = copy.deepcopy(base)
for item in config:
shape_config[item] = config[item]
-
- with open('run_config.json', mode='w') as fid:
- json.dump(shape_config, fid, indent=4)
+ for engine in ENGINES:
+ shape_config['ENGINE'] = engine
+ with open('run_config.json', mode='w') as fid:
+ json.dump(shape_config, fid, indent=4)
if init:
import dactyl_manuform as dactyl_manuform
+ dactyl_manuform.run()
+ init = False
else:
importlib.reload(dactyl_manuform)
+ dactyl_manuform.run()
+
- init = False