From 68b2f9bd888f86766fea254d6253f3b1e88cc8a4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 14 Jul 2018 15:00:49 +0200 Subject: wip --- demo/doit/.gitignore | 4 +++ demo/doit/demo-cache.lib | 71 ++++++++++++++++++++++++++++++++++++++++++++ demo/doit/demo.kicad_pcb | 1 + demo/doit/demo.pro | 33 +++++++++++++++++++++ demo/doit/demo.sch | 77 ++++++++++++++++++++++++++++++++++++++++++++++++ demo/doit/demo/demo.pro | 33 +++++++++++++++++++++ demo/doit/dodo.py | 14 +++++++++ 7 files changed, 233 insertions(+) create mode 100644 demo/doit/.gitignore create mode 100644 demo/doit/demo-cache.lib create mode 100644 demo/doit/demo.kicad_pcb create mode 100644 demo/doit/demo.pro create mode 100644 demo/doit/demo.sch create mode 100644 demo/doit/demo/demo.pro create mode 100644 demo/doit/dodo.py (limited to 'demo') diff --git a/demo/doit/.gitignore b/demo/doit/.gitignore new file mode 100644 index 0000000..47aa48a --- /dev/null +++ b/demo/doit/.gitignore @@ -0,0 +1,4 @@ +gerber.zip +gerber +.doit.db +components diff --git a/demo/doit/demo-cache.lib b/demo/doit/demo-cache.lib new file mode 100644 index 0000000..e81b633 --- /dev/null +++ b/demo/doit/demo-cache.lib @@ -0,0 +1,71 @@ +EESchema-LIBRARY Version 2.4 +#encoding utf-8 +# +# Device:Battery_Cell +# +DEF Device:Battery_Cell BT 0 0 N N 1 F N +F0 "BT" 100 100 50 H V L CNN +F1 "Device:Battery_Cell" 100 0 50 H V L CNN +F2 "" 0 60 50 V I C CNN +F3 "" 0 60 50 V I C CNN +DRAW +S -90 70 90 60 0 1 0 F +S -62 47 58 27 0 1 0 F +P 2 0 1 0 0 30 0 0 N +P 2 0 1 0 0 70 0 100 N +P 2 0 1 10 20 135 60 135 N +P 2 0 1 10 40 155 40 115 N +X + 1 0 200 100 D 50 50 1 1 P +X - 2 0 -100 100 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Device:C +# +DEF Device:C C 0 10 N Y 1 F N +F0 "C" 25 100 50 H V L CNN +F1 "Device:C" 25 -100 50 H V L CNN +F2 "" 38 -150 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + C_* +$ENDFPLIST +DRAW +P 2 0 1 20 -80 -30 80 -30 N +P 2 0 1 20 -80 30 80 30 N +X ~ 1 0 150 110 D 50 50 1 1 P +X ~ 2 0 -150 110 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Device:R +# +DEF Device:R R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "Device:R" 0 0 50 V V C CNN +F2 "" -70 0 50 V I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + R_* +$ENDFPLIST +DRAW +S -40 -100 40 100 0 1 10 N +X ~ 1 0 150 50 D 50 50 1 1 P +X ~ 2 0 -150 50 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# power:GND +# +DEF power:GND #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -250 50 H I C CNN +F1 "power:GND" 0 -150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N +X GND 1 0 0 0 D 50 50 1 1 W N +ENDDRAW +ENDDEF +# +#End Library diff --git a/demo/doit/demo.kicad_pcb b/demo/doit/demo.kicad_pcb new file mode 100644 index 0000000..02c8ecb --- /dev/null +++ b/demo/doit/demo.kicad_pcb @@ -0,0 +1 @@ +(kicad_pcb (version 4) (host kicad "dummy file") ) diff --git a/demo/doit/demo.pro b/demo/doit/demo.pro new file mode 100644 index 0000000..152769c --- /dev/null +++ b/demo/doit/demo.pro @@ -0,0 +1,33 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] diff --git a/demo/doit/demo.sch b/demo/doit/demo.sch new file mode 100644 index 0000000..a805e83 --- /dev/null +++ b/demo/doit/demo.sch @@ -0,0 +1,77 @@ +EESchema Schematic File Version 4 +EELAYER 26 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L Device:R R? +U 1 1 5B431328 +P 4400 2600 +F 0 "R?" V 4193 2600 50 0000 C CNN +F 1 "10k" V 4284 2600 50 0000 C CNN +F 2 "" V 4330 2600 50 0001 C CNN +F 3 "~" H 4400 2600 50 0001 C CNN + 1 4400 2600 + 0 1 1 0 +$EndComp +$Comp +L Device:Battery_Cell BT? +U 1 1 5B431438 +P 3700 2900 +F 0 "BT?" H 3818 2996 50 0000 L CNN +F 1 "9V" H 3818 2905 50 0000 L CNN +F 2 "" V 3700 2960 50 0001 C CNN +F 3 "~" V 3700 2960 50 0001 C CNN + 1 3700 2900 + 1 0 0 -1 +$EndComp +$Comp +L Device:C C? +U 1 1 5B4314AB +P 5000 2850 +F 0 "C?" H 5115 2896 50 0000 L CNN +F 1 "1u" H 5115 2805 50 0000 L CNN +F 2 "" H 5038 2700 50 0001 C CNN +F 3 "~" H 5000 2850 50 0001 C CNN + 1 5000 2850 + 1 0 0 -1 +$EndComp +Wire Wire Line + 3700 3000 3700 3100 +Wire Wire Line + 5000 3100 5000 3000 +$Comp +L power:GND #PWR? +U 1 1 5B4315FE +P 3700 3200 +F 0 "#PWR?" H 3700 2950 50 0001 C CNN +F 1 "GND" H 3705 3027 50 0000 C CNN +F 2 "" H 3700 3200 50 0001 C CNN +F 3 "" H 3700 3200 50 0001 C CNN + 1 3700 3200 + 1 0 0 -1 +$EndComp +Wire Wire Line + 3700 3200 3700 3100 +Connection ~ 3700 3100 +Wire Wire Line + 3700 2700 3700 2600 +Wire Wire Line + 5000 2600 5000 2700 +Wire Wire Line + 3700 2600 4250 2600 +Wire Wire Line + 3700 3100 5000 3100 +Wire Wire Line + 4550 2600 5000 2600 +$EndSCHEMATC diff --git a/demo/doit/demo/demo.pro b/demo/doit/demo/demo.pro new file mode 100644 index 0000000..152769c --- /dev/null +++ b/demo/doit/demo/demo.pro @@ -0,0 +1,33 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py new file mode 100644 index 0000000..4c8748a --- /dev/null +++ b/demo/doit/dodo.py @@ -0,0 +1,14 @@ +from ee.kicad.doit import KicadDoitTasks + +prj = "demo" +sch = "{}.sch".format(prj) +kicad_pcb = "{}.kicad_pcb".format(prj) + +def task_kicad(): + args = { + "sch": sch, + "kicad_pcb": kicad_pcb, + "gerber_dir": "gerber", + "components_dir": "components", + } + yield KicadDoitTasks(**args).tasks() -- cgit v1.2.3