0hmx3/test

This code defines a 10mm x 10mm electronic board with a 1kΩ resistor and a 1000pF capacitor connected to each other.

Version
0.0.1
License
unset
Stars
0

index.tsx

PCBPCB preview for index.tsx
SchematicSchematic preview for index.tsx
export default () => (
  <board width="32mm" height="20mm">
    <connector
      name="J1"
      manufacturerPartNumber="TYPE-C-31-M-12"
      footprint="jlcpcb:C165948"
      pinLabels={{ pin8: "USB_DP", pin9: "USB_DM" }}
      pcbX={-10}
      pcbRotation={-90}
    />
    <testpoint name="TP_DP" pcbX={12} pcbY={3} padDiameter="1.2mm" />
    <testpoint name="TP_DM" pcbX={2} pcbY={-3} padDiameter="1.2mm" />

    <trace name="USB_DP" from=".J1 > .USB_DP" to=".TP_DP > .pin1" />
    <trace name="USB_DM" from=".J1 > .USB_DM" to=".TP_DM > .pin1" />

    <differentialpair
      name="USB_DATA"
      positiveConnection="USB_DP"
      negativeConnection="USB_DM"
      maxLengthSkew={0.05}
    />
  </board>
)