summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPSR00012023-06-16 21:19:37 +0530
committerPSR00012023-06-16 21:19:37 +0530
commit7e8572765da86d68f97581a980b3e6b9e2005f60 (patch)
tree38c05ec48724b27cf80cbefe6079e64a7dd9d051
parent4a276b252d84a0b7dd24588e56dc7e214ea2d7c6 (diff)
downloadeSim-7e8572765da86d68f97581a980b3e6b9e2005f60.tar.gz
eSim-7e8572765da86d68f97581a980b3e6b9e2005f60.tar.bz2
eSim-7e8572765da86d68f97581a980b3e6b9e2005f60.zip
Update KiCad sym template
-rwxr-xr-xsrc/maker/Appconfig.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/maker/Appconfig.py b/src/maker/Appconfig.py
index 06758898..9d373d5e 100755
--- a/src/maker/Appconfig.py
+++ b/src/maker/Appconfig.py
@@ -24,16 +24,18 @@ class Appconfig:
# parser_ngveri.read(os.path.join(home,
# os.path.join('.ngveri', 'config.ini')))
- kicad_lib_template = {
- "start_def": "DEF comp_name U 0 40 Y Y 1 F N",
- "U_field": "F0 \"U\" 2850 1800 60 H V C CNN",
- "comp_name_field": "F1 \"comp_name\" 2850 2000 60 H V C CNN",
- "blank_field": ["F2 blank_quotes 2850 1950 60 H V C CNN",
- "F3 blank_quotes 2850 1950 60 H V C CNN"],
- "start_draw": "DRAW",
- "draw_pos": "S 2350 2100 3350 1800 0 1 0 N",
- "input_port": "X in 1 2150 2000 200 R 50 50 1 1 I",
- "output_port": "X out 2 3550 2000 200 L 50 50 1 1 O",
- "end_draw": "ENDDRAW",
- "end_def": "ENDDEF"
+ # KiCad V6 Library Template
+ kicad_sym_template = {
+ "start_def": "(symbol \"comp_name\" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)",
+ "U_field":"(property \"Reference\" \"U\" (id 0) (at 12 15 0)(effects (font (size 1.524 1.524))))",
+ "comp_name_field":"(property \"Value\" \"comp_name\" (id 1) (at 12 18 0)(effects (font (size 1.524 1.524))))",
+ "blank_field": [
+ "(property \"Footprint\" blank_quotes (id 2) (at 72.39 49.53 0)(effects (font (size 1.524 1.524))))",
+ "(property \"Datasheet\" blank_quotes (id 3) (at 72.39 49.53 0)(effects (font (size 1.524 1.524))))"
+ ],
+ "draw_pos": "(symbol \"comp_name\"(rectangle (start 0 0 ) (end 25.40 3.6 )(stroke (width 0) (type default) (color 0 0 0 0))(fill (type none))))",
+ "start_draw":"(symbol",
+ "input_port":"(pin input line(at -5.15 0.54 0 )(length 5.08 )(name \"in\" (effects(font(size 1.27 1.27))))(number \"1\" (effects (font (size 1.27 1.27)))))",
+ "output_port": "(pin output line(at 30.52 0.54 180 )(length 5.08 )(name \"out\" (effects(font(size 1.27 1.27))))(number \"2\" (effects (font (size 1.27 1.27)))))",
+ "end_draw":"))"
}