abse/smart-ring-flex

A tscircuit package created by abse.

Version
0.0.24
License
unset
Stars
0

imports/CH552G/CH552G.tsx

import objPath from "./CH552G.obj"
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["P3_2","TXD1_","INT0","VBUS1","AIN3"],
  pin2: ["P1_4","T2_","CAP1_","SCS","TIN2","UCC1","AIN1"],
  pin3: ["P1_5","MOSI","PWM1","TIN3","UCC2","AIN2"],
  pin4: ["P1_6","MISO","RXD1","TIN4"],
  pin5: ["P1_7","SCK","TXD1","TIN5"],
  pin6: ["RST","T2EX_","CAP2_"],
  pin7: ["P3_1","PWM2_","TXD"],
  pin8: ["P3_0","PWM1_","RXD"],
  pin9: ["P1_1","T2EX","CAP2","TIN1","VBUS2","AIN0"],
  pin10: ["P3_3","INT1"],
  pin11: ["P3_4","PWM2","RXD1_","T0"],
  pin12: ["P3_6","UDP"],
  pin13: ["P3_7","UDM"],
  pin14: ["GND","VSS"],
  pin15: ["VCC","VDD"],
  pin16: ["V33"]
} as const

const pinAttributes = {
  pin14: {requiresGround: true},
  pin15: {requiresPower: true}
} as const

export const CH552G = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C111292"
  ]
}}
      manufacturerPartNumber="CH552G"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-4.445mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-3.175mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-1.905mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="-0.635mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="0.635mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="1.905mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="3.175mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="4.445mm" pcbY="-2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin16"]} pcbX="-4.445mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin15"]} pcbX="-3.175mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin14"]} pcbX="-1.905mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin13"]} pcbX="-0.635mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="0.635mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="1.905mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="3.175mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="4.445mm" pcbY="2.872486mm" width="0.5599938mm" height="1.7450054mm" radius="0.2799969mm" shape="pill" />
<silkscreenpath route={[{"x":-5.076190000000111,"y":-1.7713960000000952},{"x":-5.076190000000111,"y":1.7713959999999815},{"x":5.076189999999997,"y":1.7713959999999815},{"x":5.076189999999997,"y":-1.7713960000000952},{"x":-5.076190000000111,"y":-1.7713960000000952}]} />
<silkscreencircle pcbX="-4.445mm" pcbY="-1.019048mm" radius="0.150114mm" />
<silkscreencircle pcbX="-5.177282mm" pcbY="-2.872486mm" radius="0.150114mm" />
<silkscreentext text="{NAME}" pcbX="-0.127mm" pcbY="4.4544mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-5.249990000000025,"y":3.9949887000001354},{"x":5.249990000000025,"y":3.9949887000001354},{"x":5.249990000000025,"y":-3.9949887000001354},{"x":-5.249990000000025,"y":-3.9949887000001354},{"x":-5.249990000000025,"y":3.9949887000001354}]} />
      </footprint>}
      cadModel={{
        objUrl: objPath,
        pcbRotationOffset: 90,
        modelOriginPosition: { x: -0.000012700000070253736, y: 0, z: 0.000575 },
      }}
      {...props}
    />
  )
}