aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/doit/dodo.py14
-rw-r--r--demo/doit/ee/kicad-footprint.csv2
2 files changed, 12 insertions, 4 deletions
diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py
index 27ceb67..858e673 100644
--- a/demo/doit/dodo.py
+++ b/demo/doit/dodo.py
@@ -1,4 +1,6 @@
import ee.kicad.doit
+from ee.kicad.doit import *
+from ee.fact import DataSetManager
prj = "demo"
sch = "{}.sch".format(prj)
@@ -6,12 +8,16 @@ kicad_pcb = "{}.kicad_pcb".format(prj)
DOIT_CONFIG = {'check_file_uptodate': 'timestamp'}
+dsm = DataSetManager("ee")
+
+kicad_footprint = "kicad-footprint"
+dsm.add_ds("csv", kicad_footprint, "kicad-footprint-mapping", path="ee/kicad-footprint.csv")
+
+ee.kicad.doit.change_data_sets_for_task(task_kicad_create_component_data_set, lambda ds: ds + [kicad_footprint])
+
ee.kicad.doit.init(
+ data_set_manager=dsm,
sch=sch,
kicad_pcb=kicad_pcb,
gerber_dir="gerber",
- data_set_dir="ee",
)
-
-# noinspection PyUnresolvedReferences
-from ee.kicad.doit import *
diff --git a/demo/doit/ee/kicad-footprint.csv b/demo/doit/ee/kicad-footprint.csv
new file mode 100644
index 0000000..a9ccfd7
--- /dev/null
+++ b/demo/doit/ee/kicad-footprint.csv
@@ -0,0 +1,2 @@
+kicad,common
+Resistor_SMD:R_1206_3216Metric,SMD_3216