techmannih/circuit
This code renders a 50mm by 50mm circuit board with a Texas Instruments TXS0104EQPWRQ1 level translator component placed at specified coordinates.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
dist/index.js
import { jsx, jsxs } from 'react/jsx-runtime';
const pinLabels = {
pin1: ["VCCA"],
pin2: ["A1"],
pin3: ["A2"],
pin4: ["A3"],
pin5: ["A4"],
pin6: ["NC1"],
pin7: ["GND"],
pin8: ["OE"],
pin9: ["NC2"],
pin10: ["B4"],
pin11: ["B3"],
pin12: ["B2"],
pin13: ["B1"],
pin14: ["VCCB"]
};
const TXS0104EQPWRQ1 = (props) => {
return (jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
"jlcpcb": [
"C2652953"
]
}, manufacturerPartNumber: "TXS0104EQPWRQ1", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-2.7999690000000044mm", pcbY: "1.9499579999999952mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-2.7999690000000044mm", pcbY: "1.299972000000011mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-2.7999690000000044mm", pcbY: "0.6499859999999984mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-2.7999690000000044mm", pcbY: "1.4210854715202004e-14mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-2.7999690000000044mm", pcbY: "-0.6499859999999984mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-2.7999690000000044mm", pcbY: "-1.299972000000011mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-2.7999690000000044mm", pcbY: "-1.9499579999999952mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "2.79996899999999mm", pcbY: "-1.9499579999999952mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "2.79996899999999mm", pcbY: "-1.299972000000011mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "2.79996899999999mm", pcbY: "-0.6499859999999984mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "2.79996899999999mm", pcbY: "1.4210854715202004e-14mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "2.79996899999999mm", pcbY: "0.6499859999999984mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "2.79996899999999mm", pcbY: "1.299972000000011mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "2.79996899999999mm", pcbY: "1.9499579999999952mm", width: "1.6999966mm", height: "0.39999919999999994mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -1.60014919999999, "y": 2.514574599999989 }, { "x": -0.6857492000000036, "y": 2.514574599999989 }] }), jsx("silkscreenpath", { route: [{ "x": 0.6858508000000114, "y": 2.514574599999989 }, { "x": 1.6002507999999978, "y": 2.514574599999989 }] }), jsx("silkscreenpath", { route: [{ "x": 2.2500590000000074, "y": 2.4999696000000142 }, { "x": 2.2500590000000074, "y": 2.3843233999999995 }] }), jsx("silkscreenpath", { route: [{ "x": 2.2500590000000074, "y": -2.3843741999999963 }, { "x": 2.2500590000000074, "y": -2.500020399999997 }, { "x": -2.2499573999999996, "y": -2.500020399999997 }, { "x": -2.2499573999999996, "y": -2.3843741999999963 }] }), jsx("silkscreenpath", { route: [{ "x": -2.2499573999999996, "y": 2.3843233999999995 }, { "x": -2.2499573999999996, "y": 2.4999696000000142 }] }), jsx("silkscreenpath", { route: [{ "x": 1.6002507999999978, "y": 2.514574599999989 }, { "x": 2.2500590000000074, "y": 2.514574599999989 }] }), jsx("silkscreenpath", { route: [{ "x": -1.60014919999999, "y": 2.514574599999989 }, { "x": -2.2499573999999996, "y": 2.514574599999989 }] }), jsx("silkscreenpath", { route: [{ "x": 0.6858508000000114, "y": 2.514574599999989 }, { "x": -0.6857492000000036, "y": 2.514574599999989 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=5377177da492449fa1a3111d646cac17&pn=C2652953",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: { x: 0.00005079999999679785, y: -25399999998398926e-21, z: -1.3499575999999933 },
}, ...props }));
};
var index = () => (jsx("board", { width: "50mm", height: "50mm", children: jsx(TXS0104EQPWRQ1, { name: "U_LC1", pcbX: -10, pcbY: 5 }) }));
export { index as default };