abse/boostxl-uln2003
This code defines a React component that models a through-hole or surface-mount LED with specified pin labels, footprint, silkscreen, and 3D CAD model for PCB layout.
- Version
- 1.0.5
- License
- unset
- Stars
- 0
imports/MMSZ5242B/MMSZ5242B.tsx
import objPath from "./MMSZ5242B.obj"
import type { DiodeProps } from "@tscircuit/props"
export const MMSZ5242B = (props: DiodeProps) => {
const { name = "D1", ...restProps } = props
return (
<diode
name={name}
zener
supplierPartNumbers={{
"jlcpcb": [
"C2993576"
]
}}
manufacturerPartNumber="MMSZ5242B"
footprint={<footprint>
<smtpad portHints={["pin1", "anode"]} pcbX="1.6350996mm" pcbY="0mm" width="0.9100058mm" height="1.2199874mm" shape="rect" />
<smtpad portHints={["pin2", "cathode"]} pcbX="-1.6350996mm" pcbY="0mm" width="0.9100058mm" height="1.2199874mm" shape="rect" />
<silkscreenpath route={[{"x":-1.37619739999991,"y":0.9262109999999666},{"x":1.3761974000000237,"y":0.9262109999999666}]} />
<silkscreenpath route={[{"x":1.3761974000000237,"y":0.9262109999999666},{"x":1.3761974000000237,"y":0.6832091999999648}]} />
<silkscreenpath route={[{"x":-1.37619739999991,"y":-0.9262109999999666},{"x":1.3761974000000237,"y":-0.9262109999999666}]} />
<silkscreenpath route={[{"x":1.3761974000000237,"y":-0.9262109999999666},{"x":1.3761974000000237,"y":-0.6832091999999648}]} />
<silkscreenpath route={[{"x":-0.9668002000000797,"y":0.9262109999999666},{"x":-0.9668002000000797,"y":-0.9262109999999666}]} />
<silkscreentext text="{NAME}" pcbX="0.0127mm" pcbY="1.9906mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.3327999999999065,"y":1.2406000000000859},{"x":2.3582000000001244,"y":1.2406000000000859},{"x":2.3582000000001244,"y":-1.2659999999999627},{"x":-2.3327999999999065,"y":-1.2659999999999627},{"x":-2.3327999999999065,"y":1.2406000000000859}]} />
</footprint>}
cadModel={{
objUrl: objPath,
pcbRotationOffset: 180,
modelOriginPosition: { x: 0.000012699999956566899, y: 0, z: 0.025856 },
}}
{...restProps}
/>
)
}