name: MX126-5.0
description: screw terminal, 5.0 mm pitch
variations: 2P, 3P
datasheet: https://datasheet.lcsc.com/lcsc/2309141733_MAX-MX126-5-0-02P-GN01-Cu-S-A_C5188434.pdf

housing: &template
  pattern: custom
  height: 10.3
  bodyLength: 7.8
  leadHeight: 4.0
  leadWidth: 0.6
  leadLength: 1.0
  holeDiameter: 1.3
  pitch: 5.0
  rowCount: 1
  bodyPosition: 0, -0.1

pinout@2P: 1-2

schematic@2P:
  suffix: -02P
  symbol: connector
  left: 1-2

housing@2P:
  suffix: -02P
  <<: *template
  bodyWidth: 10.0
  silkscreen: M 5.0, -3.6, -5.0, -3.6
  model: # https://grabcad.com/library/degson-dg126-series-5-0-7-5mm-terminal-block-pack-1
    file: 'library/connector/terminal-screw_mx126-5.0-02P.step'
    rotation: -90,0,0
    position: -5.0,3.9,0
  columnCount: 2

pinout@3P: 1-3

schematic@3P:
  suffix: -03P
  symbol: connector
  left: 1-3

housing@3P:
  suffix: -03P
  <<: *template
  bodyWidth: 15.0
  silkscreen: M 7.5, -3.6, -7.5, -3.6
  model: # https://grabcad.com/library/degson-dg126-series-5-0-7-5mm-terminal-block-pack-1
    file: 'library/connector/terminal-screw_mx126-5.0-03P.step'
    rotation: -90,0,0
    position: -5.0,3.9,0
  columnCount: 3
