(kicad_pcb (version 20221018) (generator pcbnew)
  (general
    (thickness 1.6)
  )
  (paper "A4")
  (layers
    (0 "F.Cu" signal)
    (31 "B.Cu" signal)
    (32 "B.Adhes" user "B.Adhesive")
    (33 "F.Adhes" user "F.Adhesive")
    (34 "B.Paste" user)
    (35 "F.Paste" user)
    (36 "B.SilkS" user "B.Silkscreen")
    (37 "F.SilkS" user "F.Silkscreen")
    (38 "B.Mask" user)
    (39 "F.Mask" user)
    (40 "Dwgs.User" user "User.Drawings")
    (41 "Cmts.User" user "User.Comments")
    (42 "Eco1.User" user "User.Eco1")
    (43 "Eco2.User" user "User.Eco2")
    (44 "Edge.Cuts" user)
    (45 "Margin" user)
    (46 "B.CrtYd" user "B.Courtyard")
    (47 "F.CrtYd" user "F.Courtyard")
    (48 "B.Fab" user)
    (49 "F.Fab" user)
  )
  (setup
    (pad_to_mask_clearance 0.0508)
    (solder_mask_min_width 0.101)
    (pcbplotparams
      (layerselection 0x00010fc_ffffffff)
      (plot_on_all_layers_selection 0x0000000_00000000)
      (disableapertmacros false)
      (usegerberextensions true)
      (usegerberattributes true)
      (usegerberadvancedattributes true)
      (creategerberjobfile true)
      (dashed_line_dash_ratio 12.000000)
      (dashed_line_gap_ratio 3.000000)
      (svgprecision 6)
      (plotframeref false)
      (viasonmask false)
      (mode 1)
      (useauxorigin false)
      (hpglpennumber 1)
      (hpglpenspeed 20)
      (hpglpendiameter 15.000000)
      (dxfpolygonmode true)
      (dxfimperialunits true)
      (dxfusepcbnewfont true)
      (psnegative false)
      (psa4output false)
      (plotreference true)
      (plotvalue true)
      (plotinvisibletext false)
      (sketchpadsonfab false)
      (subtractmaskfromsilk false)
      (outputformat 1)
      (mirror false)
      (drillshape 0)
      (scaleselection 1)
      (outputdirectory "gerbers")
    )
  )
  (net 0 "")
  (net 1 "GNDREF")
  (net 2 "Net-(D1-A)")
  (net 3 "Net-(Q1-B)")
  (net 4 "Net-(J7-Pin_1)")
  (net 5 "Net-(U2-PA3)")
  (net 6 "Net-(J7-Pin_3)")
  (net 7 "/PA6")
  (net 8 "/PA1")
  (net 9 "/PA7")
  (net 10 "/updi")
  (net 11 "+4V")
  (footprint "Diode_SMD:D_SOD-323_HandSoldering" (layer "F.Cu")
    (at 213.975 152.275)
    (descr "SOD-323")
    (tags "SOD-323")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "Sim.Device" "D")
    (property "Sim.Pins" "1=K 2=A")
    (property "ki_description" "75V 0.15A Fast switching Diode, SOD-323")
    (property "ki_keywords" "diode")
    (attr smd)
    (fp_text reference "D1" (at 0 -1.85) (layer "F.SilkS") hide)
    (fp_text value "1N4148WS" (at 0.1 1.9) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 -1.85) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1.25 0) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 11 "+4V") (pinfunction "K") (pintype "passive"))
    (pad "2" smd roundrect (at 1.25 0) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 2 "Net-(D1-A)") (pinfunction "A") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Diode_SMD.3dshapes/D_SOD-323.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" (layer "F.Cu")
    (at 214.65 144.66)
    (descr "Through hole straight pin header, 1x03, 2.54mm pitch, single row")
    (tags "Through hole pin header THT 1x03 2.54mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x03, script generated")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J3" (at 0 -2.33) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x03_Pin" (at 0 7.41) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 2.54 90) (layer "F.Fab"))
    (pad "1" thru_hole roundrect (at 0 0) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.3529411765)
      (net 1 "GNDREF") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" thru_hole rect (at 0 2.54) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 11 "+4V") (pinfunction "Pin_2") (pintype "passive"))
    (pad "3" thru_hole oval (at 0 5.08) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 8 "/PA1") (pinfunction "Pin_3") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x03_P2.54mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" (layer "F.Cu")
    (at 200.9625 138.2 180)
    (descr "Capacitor SMD 0805 (2012 Metric), square (rectangular) end terminal, IPC_7351 nominal with elongated pad for handsoldering. (Body size source: IPC-SM-782 page 76, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf, https://docs.google.com/spreadsheets/d/1BsfQQcO9C6DZCsRaXUlFlo91Tg2WpOkGARC1WS5S8t0/edit?usp=sharing), generated with kicad-footprint-generator")
    (tags "capacitor handsolder")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (attr smd)
    (fp_text reference "C1" (at 0 -1.68) (layer "F.SilkS") hide)
    (fp_text value ".1" (at 0 1.68) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1.0375 0 180) (size 1.175 1.45) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.212766)
      (net 11 "+4V") (pintype "passive"))
    (pad "2" smd roundrect (at 1.0375 0 180) (size 1.175 1.45) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.212766)
      (net 1 "GNDREF") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Capacitor_SMD.3dshapes/C_0805_2012Metric.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" (layer "F.Cu")
    (at 205.075 151.875 -90)
    (descr "Through hole straight pin header, 1x03, 2.54mm pitch, single row")
    (tags "Through hole pin header THT 1x03 2.54mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x03, script generated")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J2" (at 0 -2.33 90) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x03_Pin" (at 0 7.41 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 2.54) (layer "F.Fab"))
    (pad "1" thru_hole roundrect (at 0 0 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.3529411765)
      (net 1 "GNDREF") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" thru_hole roundrect (at 0 2.54 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0)
      (chamfer_ratio 0.2) (chamfer top_left)
      (net 11 "+4V") (pinfunction "Pin_2") (pintype "passive"))
    (pad "3" thru_hole oval (at 0 5.08 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 7 "/PA6") (pinfunction "Pin_3") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x03_P2.54mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "attinyspeaker:D_SO-8_handsolder" (layer "F.Cu")
    (at 206.41 140.92 90)
    (descr "8-Lead Plastic SO, Exposed Die Pad (see https://www.diodes.com/assets/Package-Files/SO-8EP.pdf)")
    (tags "SO exposed pad")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "20MHz, 4kB Flash, 256B SRAM, 128B EEPROM, SOIC-8")
    (property "ki_keywords" "AVR 8bit Microcontroller tinyAVR")
    (attr smd)
    (fp_text reference "U2" (at 0 -3.3 90) (layer "F.SilkS"))
    (fp_text value "ATtiny412-SS" (at 0 3.4 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 0 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -2.43 -1.905 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1246882793)
      (net 11 "+4V") (pinfunction "VCC") (pintype "power_in"))
    (pad "2" smd roundrect (at -2.43 -0.635 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1246882793)
      (net 7 "/PA6") (pinfunction "PA6") (pintype "bidirectional"))
    (pad "3" smd roundrect (at -2.43 0.635 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1246882793)
      (net 9 "/PA7") (pinfunction "PA7") (pintype "bidirectional"))
    (pad "4" smd roundrect (at -2.43 1.905 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1246882793)
      (net 8 "/PA1") (pinfunction "PA1") (pintype "bidirectional"))
    (pad "5" smd roundrect (at 2.43 1.905 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1253117207)
      (net 4 "Net-(J7-Pin_1)") (pinfunction "PA2") (pintype "bidirectional"))
    (pad "6" smd roundrect (at 2.43 0.635 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1246882793)
      (net 10 "/updi") (pinfunction "~{RESET}/PA0") (pintype "bidirectional"))
    (pad "7" smd roundrect (at 2.43 -0.635 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1253117207)
      (net 5 "Net-(U2-PA3)") (pinfunction "PA3") (pintype "bidirectional"))
    (pad "8" smd roundrect (at 2.43 -1.905 90) (size 2 0.802) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1246882793)
      (net 1 "GNDREF") (pinfunction "GND") (pintype "power_in"))
    (model "${KICAD6_3DMODEL_DIR}/Package_SO.3dshapes/Diodes_SO-8EP.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" (layer "F.Cu")
    (at 211.48 135.25 -90)
    (descr "Resistor SMD 0805 (2012 Metric), square (rectangular) end terminal, IPC_7351 nominal with elongated pad for handsoldering. (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags "resistor handsolder")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Resistor, US symbol")
    (property "ki_keywords" "R res resistor")
    (attr smd)
    (fp_text reference "R1" (at 0 -1.65 90) (layer "F.SilkS") hide)
    (fp_text value "39-220" (at 0 1.65 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 0 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1 0 270) (size 1.2 1.4) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.208333)
      (net 6 "Net-(J7-Pin_3)") (pintype "passive"))
    (pad "2" smd roundrect (at 1 0 270) (size 1.2 1.4) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.208333)
      (net 5 "Net-(U2-PA3)") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Resistor_SMD.3dshapes/R_0805_2012Metric.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" (layer "F.Cu")
    (at 214.7 134.5)
    (descr "Through hole straight pin header, 1x03, 2.54mm pitch, single row")
    (tags "Through hole pin header THT 1x03 2.54mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x03, script generated")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J4" (at 0 -2.33) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x03_Pin" (at 0 7.41) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 2.54 90) (layer "F.Fab"))
    (pad "1" thru_hole roundrect (at 0 0) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.3529411765)
      (net 1 "GNDREF") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" thru_hole rect (at 0 2.54) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 11 "+4V") (pinfunction "Pin_2") (pintype "passive"))
    (pad "3" thru_hole oval (at 0 5.08) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 9 "/PA7") (pinfunction "Pin_3") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x03_P2.54mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "attinyspeaker:PinHeader_1x03_P2.54mm_Vertical_smd" (layer "F.Cu")
    (at 211.09 138.83)
    (descr "Through hole straight pin header, 1x03, 2.54mm pitch, single row")
    (tags "Through hole pin header THT 1x03 2.54mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J5" (at 0 -2.33) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x03" (at 0 7.41) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 2.54 90) (layer "F.Fab"))
    (pad "1" smd circle (at 0 0) (size 1.5 1.5) (layers "F.Cu" "F.Paste" "F.Mask")
      (net 11 "+4V") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" smd circle (at 0 2.54) (size 1.5 1.5) (layers "F.Cu" "F.Paste" "F.Mask")
      (net 1 "GNDREF") (pinfunction "Pin_2") (pintype "passive"))
    (pad "3" smd circle (at 0 5.08) (size 1.5 1.5) (layers "F.Cu" "F.Paste" "F.Mask")
      (net 10 "/updi") (pinfunction "Pin_3") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x03_P2.54mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Connector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_Vertical" (layer "F.Cu")
    (at 210.375 152.175 -90)
    (descr "Through hole straight pin header, 1x02, 2.00mm pitch, single row")
    (tags "Through hole pin header THT 1x02 2.00mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J8" (at 0 -2.06 90) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x02" (at 0 4.06 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 1) (layer "F.Fab"))
    (pad "1" thru_hole rect (at 0 0 270) (size 1.35 1.35) (drill 0.8) (layers "*.Cu" "*.Mask")
      (net 11 "+4V") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" thru_hole oval (at 0 2 270) (size 1.35 1.35) (drill 0.8) (layers "*.Cu" "*.Mask")
      (net 2 "Net-(D1-A)") (pinfunction "Pin_2") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.00mm.3dshapes/PinHeader_1x02_P2.00mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "MountingHole:MountingHole_2.2mm_M2" (layer "F.Cu")
    (at 204.85 147.15)
    (descr "Mounting Hole 2.2mm, no annular, M2")
    (tags "mounting hole 2.2mm no annular m2")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Mounting Hole without connection")
    (property "ki_keywords" "mounting hole")
    (attr exclude_from_pos_files)
    (fp_text reference "H1" (at 0 -3.2) (layer "F.SilkS") hide)
    (fp_text value "MountingHole" (at 0 3.2) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab"))
    (pad "" np_thru_hole circle (at 0 0) (size 2.2 2.2) (drill 2.2) (layers "*.Cu" "*.Mask"))
  )
  (footprint "Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical" (layer "F.Cu")
    (at 208.25 134.5 -90)
    (descr "Through hole straight pin header, 1x04, 2.54mm pitch, single row")
    (tags "Through hole pin header THT 1x04 2.54mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x04, script generated")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J7" (at 0 -2.33 90) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x04_Pin" (at 0 9.95 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 3.81) (layer "F.Fab"))
    (pad "1" thru_hole circle (at 0 0 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 4 "Net-(J7-Pin_1)") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" thru_hole roundrect (at 0 2.54 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0)
      (chamfer_ratio 0.2) (chamfer top_left)
      (net 11 "+4V") (pinfunction "Pin_2") (pintype "passive"))
    (pad "3" thru_hole oval (at 0 5.08 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask")
      (net 6 "Net-(J7-Pin_3)") (pinfunction "Pin_3") (pintype "passive"))
    (pad "4" thru_hole roundrect (at 0 7.62 270) (size 1.7 1.7) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.3529411765)
      (net 1 "GNDREF") (pinfunction "Pin_4") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x04_P2.54mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Diode_SMD:D_SOD-323_HandSoldering" (layer "F.Cu")
    (at 202.525 142.35 90)
    (descr "SOD-323")
    (tags "SOD-323")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "Sim.Device" "D")
    (property "Sim.Pins" "1=K 2=A")
    (property "ki_description" "75V 0.15A Fast switching Diode, SOD-323")
    (property "ki_keywords" "diode")
    (attr smd)
    (fp_text reference "D2" (at 0 -1.85 90) (layer "F.SilkS") hide)
    (fp_text value "1N4148WS" (at 0.1 1.9 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 -1.85 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1.25 0 90) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 11 "+4V") (pinfunction "K") (pintype "passive"))
    (pad "2" smd roundrect (at 1.25 0 90) (size 1 1) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25)
      (net 11 "+4V") (pinfunction "A") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Diode_SMD.3dshapes/D_SOD-323.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" (layer "F.Cu")
    (at 200.825 147.425 -90)
    (descr "Resistor SMD 0805 (2012 Metric), square (rectangular) end terminal, IPC_7351 nominal with elongated pad for handsoldering. (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags "resistor handsolder")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Resistor, US symbol")
    (property "ki_keywords" "R res resistor")
    (attr smd)
    (fp_text reference "R2" (at 0 -1.65 90) (layer "F.SilkS") hide)
    (fp_text value "1K" (at 0 1.65 90) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 0 90) (layer "F.Fab"))
    (pad "1" smd roundrect (at -1 0 270) (size 1.2 1.4) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.208333)
      (net 8 "/PA1") (pintype "passive"))
    (pad "2" smd roundrect (at 1 0 270) (size 1.2 1.4) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.208333)
      (net 3 "Net-(Q1-B)") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Resistor_SMD.3dshapes/R_0805_2012Metric.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Connector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_Vertical" (layer "F.Cu")
    (at 199.9 143.15 180)
    (descr "Through hole straight pin header, 1x02, 2.00mm pitch, single row")
    (tags "Through hole pin header THT 1x02 2.00mm single row")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)")
    (property "ki_keywords" "connector")
    (attr through_hole)
    (fp_text reference "J1" (at 0 -2.06) (layer "F.SilkS") hide)
    (fp_text value "Conn_01x02" (at 0 4.06) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 0 1 90) (layer "F.Fab"))
    (pad "1" thru_hole rect (at 0 0 180) (size 1.35 1.35) (drill 0.8) (layers "*.Cu" "*.Mask")
      (net 11 "+4V") (pinfunction "Pin_1") (pintype "passive"))
    (pad "2" thru_hole roundrect (at 0 2 180) (size 1.35 1.35) (drill 0.8) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.3703703704)
      (net 1 "GNDREF") (pinfunction "Pin_2") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.00mm.3dshapes/PinHeader_1x02_P2.00mm_Vertical.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (footprint "Package_TO_SOT_THT:TO-92_Inline" (layer "F.Cu")
    (at 208.71 148.5)
    (descr "TO-92 leads in-line, narrow, oval pads, drill 0.75mm (see NXP sot054_po.pdf)")
    (tags "to-92 sc-43 sc-43a sot54 PA33 transistor")
    (property "Sheetfile" "attiny4x2target.kicad_sch")
    (property "Sheetname" "")
    (property "ki_description" "1A Ic, 40V Vce, NPN Transistor, General Purpose Transistor, TO-92")
    (property "ki_keywords" "NPN Transistor")
    (attr through_hole)
    (fp_text reference "Q1" (at 1.27 -3.56) (layer "F.SilkS") hide)
    (fp_text value "PN2222A" (at 1.27 2.79) (layer "F.Fab"))
    (fp_text user "${REFERENCE}" (at 1.27 0) (layer "F.Fab"))
    (pad "1" thru_hole roundrect (at 0 0) (size 1.05 1.5) (drill 0.75) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.2)
      (net 1 "GNDREF") (pinfunction "E") (pintype "passive"))
    (pad "2" thru_hole oval (at 1.27 0) (size 1.05 1.5) (drill 0.75) (layers "*.Cu" "*.Mask")
      (net 3 "Net-(Q1-B)") (pinfunction "B") (pintype "input"))
    (pad "3" thru_hole oval (at 2.54 0) (size 1.05 1.5) (drill 0.75) (layers "*.Cu" "*.Mask")
      (net 2 "Net-(D1-A)") (pinfunction "C") (pintype "passive"))
    (model "${KICAD6_3DMODEL_DIR}/Package_TO_SOT_THT.3dshapes/TO-92_Inline.wrl"
      (offset (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (gr_rect (start 198.4912 133.113) (end 216.125 153.375)
    (fill none) (layer "Edge.Cuts"))
  (gr_text "choose LED\nR 39-220Ω" (at 205.85 136.05 180) (layer "B.SilkS"))
  (gr_text "attiny402 target board\n\n" (at 210.89 153.04 270) (layer "B.SilkS"))
  (gr_text "install 1K,NPN\n& D2\nto drive\nmotor with PA1" (at 198.675 144.9 180) (layer "B.SilkS"))
  (gr_text "3-6V (if over\n 5V, cut trace\n & install D1)\n" (at 200.8 140.35 180) (layer "B.SilkS"))
  (gr_text "PA3" (at 204.4 135.6 180) (layer "F.SilkS"))
  (gr_text "PA1" (at 213.675 150.675 90) (layer "F.SilkS"))
  (gr_text "PA2" (at 209.52 135.525 180) (layer "F.SilkS"))
  (gr_text "VCC" (at 213.65 148.35 90) (layer "F.SilkS"))
  (gr_text "GND" (at 210.3 142.5 90) (layer "F.SilkS"))
  (gr_text "VCC" (at 206.95 135.675 180) (layer "F.SilkS"))
  (gr_text "NPN" (at 208.7 147.5) (layer "F.SilkS"))
  (gr_text "PA6" (at 198.75 150.75) (layer "F.SilkS"))
  (gr_text "GND" (at 213.625 135.8 90) (layer "F.SilkS"))
  (gr_text "LED" (at 204.3 136.5 180) (layer "F.SilkS"))
  (gr_text "GND" (at 213.65 145.875 90) (layer "F.SilkS"))
  (gr_text "PWR" (at 200.75 140.55 270) (layer "F.SilkS"))
  (gr_text "GND" (at 203.95 150.7) (layer "F.SilkS"))
  (gr_text "opt" (at 204.08 149.17) (layer "F.SilkS"))
  (gr_text "UPDI" (at 210.35 145.5 90) (layer "F.SilkS"))
  (gr_text "R" (at 211.973699 135.655789 90) (layer "F.SilkS"))
  (gr_text "1K" (at 201.975 146.425 -90) (layer "F.SilkS"))
  (gr_text "C" (at 201.422 137.668 180) (layer "F.SilkS"))
  (gr_text "VCC" (at 201.35 150.65) (layer "F.SilkS"))
  (gr_text "VCC" (at 213.6 138.275 90) (layer "F.SilkS"))
  (gr_text "AT402" (at 204.9 141.025) (layer "F.SilkS"))
  (gr_text "GND" (at 198.65 140.3) (layer "F.SilkS"))
  (gr_text "VCC" (at 201.15 144.25 180) (layer "F.SilkS"))
  (gr_text "IR" (at 209.042 136.398 180) (layer "F.SilkS"))
  (gr_text "VCC" (at 210.3 139.9 90) (layer "F.SilkS"))
  (gr_text "D2" (at 211.6 151.25) (layer "F.SilkS"))
  (gr_text "D1" (at 203.2 144.5 180) (layer "F.SilkS"))
  (gr_text "PA7" (at 213.625 140.775 90) (layer "F.SilkS"))
  (gr_text "PA1+" (at 207.8 151.4) (layer "F.SilkS"))
  (gr_text "GND" (at 201.85 135.675 180) (layer "F.SilkS"))
  (gr_text "0.1uF" (at 202.75 137.35 -90) (layer "F.SilkS"))
  (zone (net 0) (net_name "") (layer "F.Cu") (hatch edge 0.5)
    (connect_pads (clearance 0))
    (min_thickness 0.25) (filled_areas_thickness no)
    (keepout (tracks allowed) (vias allowed) (pads allowed) (copperpour not_allowed) (footprints allowed))
    (fill (thermal_gap 0.3) (thermal_bridge_width 0.5))
    (polygon
      (pts
        (xy 201.975 139.175)
        (xy 201.275 139.1)
        (xy 201.3 137.25)
        (xy 202.7 137.225)
        (xy 203.35 138.625)
        (xy 204.15 140.375)
        (xy 204.55 141.975)
        (xy 205.225 142.125)
        (xy 205.1 143.575)
        (xy 198.8 144.725)
        (xy 201.7 142.05)
        (xy 202.875 141.15)
        (xy 202.85 140.25)
      )
    )
  )
  (zone (net 11) (net_name "+4V") (layer "F.Cu") (hatch edge 0.5)
    (priority 1)
    (connect_pads (clearance 0.22))
    (min_thickness 0.25) (filled_areas_thickness no)
    (fill yes (thermal_gap 0.3) (thermal_bridge_width 0.5))
    (polygon
      (pts
        (xy 198.85 133.4)
        (xy 215.95 133.3)
        (xy 215.975 152.95)
        (xy 198.675 152.875)
      )
    )
  )
  (zone (net 1) (net_name "GNDREF") (layer "B.Cu") (hatch edge 0.5)
    (connect_pads (clearance 0.22))
    (min_thickness 0.25) (filled_areas_thickness no)
    (fill yes (thermal_gap 0.3) (thermal_bridge_width 0.5))
    (polygon
      (pts
        (xy 198.85 133.25)
        (xy 215.95 133.3)
        (xy 216 153.15)
        (xy 198.75 153.05)
      )
    )
  )
)
