From dad174bfd36b2b1ad2cda0e23585c1cebcb0c4c5 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 26 Dec 2022 11:10:24 -0300 Subject: [PATCH] Added examples for Panelize and PCB_Print using sub-PCBs. --- .../panelize_sub_pcb_bp.kibot.yaml | 65 +++++++++++++++++++ .../pcb_print_sub_pcb_bp.kibot.yaml | 62 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 tests/yaml_samples/panelize_sub_pcb_bp.kibot.yaml create mode 100644 tests/yaml_samples/pcb_print_sub_pcb_bp.kibot.yaml diff --git a/tests/yaml_samples/panelize_sub_pcb_bp.kibot.yaml b/tests/yaml_samples/panelize_sub_pcb_bp.kibot.yaml new file mode 100644 index 00000000..3e092b85 --- /dev/null +++ b/tests/yaml_samples/panelize_sub_pcb_bp.kibot.yaml @@ -0,0 +1,65 @@ +# Example KiBot config file for a basic panel +kibot: + version: 1 + +import: + - file: battery_pack_sub_pcbs.kibot.yaml + +outputs: + - name: 'panel' + comment: "Create a 4x4 complex panel" + type: panelize + options: + title: '+ (Panel for %S)' + units: mm + configs: + - layout: + rows: 4 + cols: 4 + space: 2 + hbackbone: 5 + vbackbone: 5 + hboneskip: 1 + vboneskip: 1 + page: + size: A3 + tabs: + type: fixed + width: 3 + vcount: 2 + hcount: 0 + cuts: + type: mousebites + drill: 0.5 + spacing: 1mm + offset: 0.2 + prolong: 0.5 + framing: + type: railstb + width: 5 + space: 3 + copperfill: + type: hatched + clearance: 2 + spacing: 0.5 + width: 0.5 + tooling: + type: 3hole + hoffset: 2.5 + voffset: 2.5 + size: 1.5 + fiducials: + type: 3fid + hoffset: 5 + voffset: 2.5 + coppersize: 2 + opening: 1 + text: + type: simple + text: My panel + anchor: mt + voffset: 2.5 + hjustify: center + vjustify: center + post: + millradius: 1 diff --git a/tests/yaml_samples/pcb_print_sub_pcb_bp.kibot.yaml b/tests/yaml_samples/pcb_print_sub_pcb_bp.kibot.yaml new file mode 100644 index 00000000..aec7af6d --- /dev/null +++ b/tests/yaml_samples/pcb_print_sub_pcb_bp.kibot.yaml @@ -0,0 +1,62 @@ +# Example KiBot config file +kibot: + version: 1 + +import: + - file: battery_pack_sub_pcbs.kibot.yaml + +outputs: + - name: 'print_front' + comment: "Print Top and Bottom layers" + type: pcb_print + dir: Layers + options: + # title: 'Fake title for front copper and silk' + # color_theme: _builtin_default + # drill_marks: small + title: Chau + # plot_sheet_reference: false + format: 'PDF' + # enable_ki6_frame_fix: true + keep_temporal_files: true + add_background: true + background_color: "#C5C4BF" + # background_color: "#FFFFFF" + background_image: "tests/data/confidential_optimized.svg" + sheet_reference_layout: "${KIPRJMOD}/../../data/test_img.kicad_wks" + pages: + - # monochrome: true + scaling: 2.0 + #mirror: true + title: Hola + sheet: Front + sheet_reference_color: "#A02020" + # black_holes: false + # holes_color: "#8080FF" + layers: + - layer: Edge.Cuts + - layer: F.Cu + - layer: F.Mask + color: '#14332440' + - layer: F.Paste + - layer: F.SilkS + - layer: F.Fab + plot_footprint_refs: false + plot_footprint_values: false + - layer: Dwgs.User + - mirror: true + scaling: 2.0 + layers: + - layer: B.Fab + color: "#000080" + - layer: Edge.Cuts + color: "#FF8000" + - layer: B.SilkS + color: "#626262" + - layer: B.Paste + color: "#FF8A8A" + - layer: B.Cu + color: "#B3FFB3" + - layer: B.Mask + color: '#14332480' + - layer: Dwgs.User