summaryrefslogtreecommitdiff
path: root/src/maker/Appconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/maker/Appconfig.py')
-rwxr-xr-xsrc/maker/Appconfig.py37
1 files changed, 25 insertions, 12 deletions
diff --git a/src/maker/Appconfig.py b/src/maker/Appconfig.py
index 06758898..315ecff8 100755
--- a/src/maker/Appconfig.py
+++ b/src/maker/Appconfig.py
@@ -24,16 +24,29 @@ 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": "))"
}