Skip to content

Commit

Permalink
template town
Browse files Browse the repository at this point in the history
  • Loading branch information
gcormier committed Nov 30, 2023
1 parent 8bdbd69 commit 61c041f
Showing 1 changed file with 8 additions and 113 deletions.
121 changes: 8 additions & 113 deletions pcb/kibot.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Use JLC template. Variables can be found in
# https://github.com/INTI-CMNB/KiBot/blob/master/kibot/resources/config_templates/JLCPCB.kibot.yaml

kibot:
version: 1

Expand All @@ -8,122 +11,14 @@ kibot:
# error: 'unconnected_items'
# regex: 'J1-SHIELD-PadS1'

filters:
- name: only_jlc_parts
comment: 'Only parts with JLC (LCSC) code'
type: generic
include_only:
- column: 'LCSC'
regex: '^.+'

variants:
- name: rotated
comment: 'Just a place holder for the rotation filter'
type: kibom
variant: rotated
pre_transform: _rot_footprint
import:
- file: JLCPCB
definitions:
_KIBOT_POS_ONLY_SMD: false
#_KIBOT_MANF_DIR: './'

outputs:
- name: JLCPCB_gerbers
comment: Gerbers compatible with JLCPCB
type: gerber
dir: gerbers
options: &gerber_options
exclude_edge_layer: true
exclude_pads_from_silkscreen: true
tent_vias: true
use_protel_extensions: true
create_gerber_job_file: false
disable_aperture_macros: true
gerber_precision: 4.6
use_gerber_x2_attributes: false
use_gerber_net_attributes: false
line_width: 0.1
subtract_mask_from_silk: true
inner_extension_pattern: '.g%n'
layers:
- F.Cu
- B.Cu
- In1.Cu
- In2.Cu
- F.Paste
- B.Paste
- F.SilkS
- B.SilkS
- F.Mask
- B.Mask
- Edge.Cuts

- name: JLCPCB_drill
comment: Drill files compatible with JLCPCB
type: excellon
dir: gerbers
options:
pth_and_npth_single_file: false
pth_id: '-PTH'
npth_id: '-NPTH'
metric_units: true
map: gerber
#route_mode_for_oval_holes: false
output: "%f%i.%x"

- name: ZipOutputs
comment: ZIP file for JLCPCB
type: compress
dir: ./
options:
output: megadesk_companion-gerbers.zip
files:
- from_output: JLCPCB_gerbers
dest: /
- from_output: JLCPCB_drill
dest: /

- name: PDF_Print
comment: 'Exports the PCB to the most common exhange format. Suitable for printing.'
type: 'pdf_sch_print'
dir: ./

- name: 'JLCPCB_position'
comment: "Pick and place file, JLCPCB style"
type: position
options:
variant: rotated
output: '%f_cpl.%x'
format: CSV
units: millimeters
separate_files_for_front_and_back: false
only_smd: false
columns:
- id: Ref
name: Designator
- Val
- Package
- id: PosX
name: "Mid X"
- id: PosY
name: "Mid Y"
- id: Rot
name: Rotation
- id: Side
name: Layer

- name: 'JLCPCB_bom'
comment: "BoM for JLCPCB"
type: bom
options:
output: '%f_%i_jlc.%x'
exclude_filter: 'only_jlc_parts'
ref_separator: ','
columns:
- field: Value
name: Comment
- field: References
name: Designator
- Footprint
- field: 'LCSC'
name: 'LCSC Part #'
csv:
hide_pcb_info: true
hide_stats_info: true
quote_all: true

0 comments on commit 61c041f

Please sign in to comment.