abse/smart-ring-flex

A tscircuit package created by abse.

Version
0.0.24
License
unset
Stars
0

imports/TXS0102DCUR/TXS0102DCUR.tsx

import objPath from "./TXS0102DCUR.obj"
import stepPath from "./TXS0102DCUR.step"
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["B2"],
  pin2: ["GND"],
  pin3: ["VCCA"],
  pin4: ["A2"],
  pin5: ["A1"],
  pin6: ["OE"],
  pin7: ["VCCB"],
  pin8: ["B1"]
} as const

const pinAttributes = {
  pin2: {requiresGround: true},
  pin1: {isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true},
  pin3: {isInput: true, requiresPower: true},
  pin4: {isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true},
  pin5: {isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true},
  pin6: {isInput: true},
  pin7: {isInput: true, requiresPower: true},
  pin8: {isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>

export const TXS0102DCUR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C53434"
  ]
}}
      manufacturerPartNumber="TXS0102DCUR"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-0.762mm" pcbY="-1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-0.254mm" pcbY="-1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.254mm" pcbY="-1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.762mm" pcbY="-1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="0.762mm" pcbY="1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="0.254mm" pcbY="1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-0.254mm" pcbY="1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-0.762mm" pcbY="1.550035mm" width="0.2500122mm" height="0.700024mm" shape="rect" />
<silkscreenpath route={[{"x":1.1998706000000539,"y":1.0001250000000255},{"x":1.1998706000000539,"y":-0.9998709999999846}]} />
<silkscreenpath route={[{"x":-1.2000484000000142,"y":-0.9998709999999846},{"x":-1.2000484000000142,"y":1.0001250000000255}]} />
<silkscreenpath route={[{"x":-1.2000484000000142,"y":-0.9998709999999846},{"x":-1.0003028000000995,"y":-0.9998709999999846}]} />
<silkscreenpath route={[{"x":-0.5239512000000559,"y":-0.9998709999999846},{"x":-0.4923028000000613,"y":-0.9998709999999846}]} />
<silkscreenpath route={[{"x":-0.015951200000017707,"y":-0.9998709999999846},{"x":0.015697199999976874,"y":-0.9998709999999846}]} />
<silkscreenpath route={[{"x":0.4920487999999068,"y":-0.9998709999999846},{"x":0.5236971999999014,"y":-0.9998709999999846}]} />
<silkscreenpath route={[{"x":1.0000487999998313,"y":-0.9998709999999846},{"x":1.1998706000000539,"y":-0.9998709999999846}]} />
<silkscreenpath route={[{"x":-1.2000484000000142,"y":1.0001250000000255},{"x":-1.0003028000000995,"y":1.0001250000000255}]} />
<silkscreenpath route={[{"x":-0.5239512000000559,"y":1.0001250000000255},{"x":-0.4923028000000613,"y":1.0001250000000255}]} />
<silkscreenpath route={[{"x":-0.015951200000017707,"y":1.0001250000000255},{"x":0.015697199999976874,"y":1.0001250000000255}]} />
<silkscreenpath route={[{"x":0.4920487999999068,"y":1.0001250000000255},{"x":0.5236971999999014,"y":1.0001250000000255}]} />
<silkscreenpath route={[{"x":1.0000487999998313,"y":1.0001250000000255},{"x":1.1998706000000539,"y":1.0001250000000255}]} />
<silkscreencircle pcbX="-1.27mm" pcbY="-1.777873mm" radius="0.0999998mm" />
<silkscreentext text="{NAME}" pcbX="-0.089154mm" pcbY="2.905127mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.2501250000000255,"y":2.1500469999999723},{"x":1.2498709999999846,"y":2.1500469999999723},{"x":1.2498709999999846,"y":-2.1500469999998586},{"x":-1.2501250000000255,"y":-2.1500469999998586},{"x":-1.2501250000000255,"y":2.1500469999999723}]} />
      </footprint>}
      cadModel={{
        objUrl: objPath,
        stepUrl: stepPath,
        pcbRotationOffset: 270,
        modelOriginPosition: { x: 0.00011430000006384944, y: 0.00012700000002041634, z: 0.000795 },
      }}
      {...props}
    />
  )
}